Fix the highlighting on the HR applications of alts

This commit is contained in:
2011-02-24 16:52:19 +00:00
parent 1939c2e671
commit 1986cdc33a
4 changed files with 4 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ class Application(models.Model):
@property
def alt_application(self):
return EVEPlayerCharacters.objects.filter(corporation=self.corporation, eveaccount__user=self.user).count() > 0
return EVEPlayerCharacter.objects.filter(corporation=self.corporation, eveaccount__user=self.user).count() > 0
def save(self, *args, **kwargs):

View File

@@ -110,6 +110,7 @@ border: 1px #fff solid;}
table tr { background-color: #CCC; }
table tr:nth-child(odd) { background-color: #ddd; }
table tr:hover { background-color: #eed; }
table tr#alt-application { background-color: #FFA545; }
table th
{background-color: #333;

View File

@@ -19,7 +19,7 @@
<th>Last Action Date</th>
<th>Last Action User</th></tr>
{% for app in apps %}
<tr><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
<tr id="alt-application"><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
<td>{{ app.character }}</td>
<td>{{ app.corporation }}</td>
<td>{{ app.get_status_display }}</td>

View File

@@ -6,7 +6,7 @@
<p>This list shows your current open applications</p>
{% if apps %}
<table>
<tr {% if app.alt_application %}background="#FFA545"{% endif %}><th>Application ID</th><th>Character</th><th>Corporation</th><th>Application Status</th></tr>
<tr><th>Application ID</th><th>Character</th><th>Corporation</th><th>Application Status</th></tr>
{% for app in apps %}
<tr><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
<td>{{ app.character }}</td>