mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Add live/trial flag on platform-admin page
Show 'Live' or 'Trial' under each service to easily identify services
This commit is contained in:
@@ -42,7 +42,8 @@ def format_stats_by_service(all_stats, services):
|
||||
(stats['emails_requested'] - stats['emails_delivered'] - stats['emails_failed'])
|
||||
),
|
||||
'delivered': stats['sms_delivered'] + stats['emails_delivered'],
|
||||
'failed': stats['sms_failed'] + stats['emails_failed']
|
||||
'failed': stats['sms_failed'] + stats['emails_failed'],
|
||||
'restricted': services[stats['service']]['restricted']
|
||||
}
|
||||
for stats in all_stats
|
||||
]
|
||||
|
||||
@@ -60,6 +60,9 @@
|
||||
{% call field() %}
|
||||
<div>
|
||||
<a href="{{ url_for('main.service_dashboard', service_id=item['id']) }}" class="browse-list-link">{{ item['name'] }}</a>
|
||||
<span class="file-list-hint">
|
||||
{{ 'Trial' if item['restricted'] else 'Live' }}
|
||||
</span>
|
||||
</div>
|
||||
{% endcall %}
|
||||
{% call field(align='right') %}
|
||||
|
||||
Reference in New Issue
Block a user