From 1986cdc33a3dbbb3bc85df335871e2227b849af8 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 24 Feb 2011 16:52:19 +0000 Subject: [PATCH] Fix the highlighting on the HR applications of alts --- hr/models.py | 2 +- media/css/style.css | 1 + templates/hr/applications/admin/view_list.html | 2 +- templates/hr/applications/view_list.html | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hr/models.py b/hr/models.py index 61a7f55..3df7d62 100644 --- a/hr/models.py +++ b/hr/models.py @@ -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): diff --git a/media/css/style.css b/media/css/style.css index 18ff708..4dbdbb5 100644 --- a/media/css/style.css +++ b/media/css/style.css @@ -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; diff --git a/templates/hr/applications/admin/view_list.html b/templates/hr/applications/admin/view_list.html index 94afc07..ec94384 100644 --- a/templates/hr/applications/admin/view_list.html +++ b/templates/hr/applications/admin/view_list.html @@ -19,7 +19,7 @@ Last Action Date Last Action User {% for app in apps %} -{{ app.id }} +{{ app.id }} {{ app.character }} {{ app.corporation }} {{ app.get_status_display }} diff --git a/templates/hr/applications/view_list.html b/templates/hr/applications/view_list.html index 697a5c4..d3e8c44 100644 --- a/templates/hr/applications/view_list.html +++ b/templates/hr/applications/view_list.html @@ -6,7 +6,7 @@

This list shows your current open applications

{% if apps %} - + {% for app in apps %}
Application IDCharacterCorporationApplication Status
Application IDCharacterCorporationApplication Status
{{ app.id }} {{ app.character }}