Platform admin: Highlight service in research mode

Research mode trumps live.

Copies the same style we use in the page footer.
This commit is contained in:
Chris Hill-Scott
2016-06-23 17:31:45 +01:00
parent 68cb76a12e
commit e988a3633a
6 changed files with 29 additions and 11 deletions

View File

@@ -43,7 +43,8 @@ def format_stats_by_service(all_stats, services):
),
'delivered': stats['sms_delivered'] + stats['emails_delivered'],
'failed': stats['sms_failed'] + stats['emails_failed'],
'restricted': services[stats['service']]['restricted']
'restricted': services[stats['service']]['restricted'],
'research_mode': services[stats['service']]['research_mode']
}
for stats in all_stats
]