mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Fix the highlighting on the HR applications of alts
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user