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

@@ -2,7 +2,7 @@
{% from "components/big-number.html" import big_number, big_number_with_status %}
{% from "components/message-count-label.html" import message_count_label %}
{% from "components/browse-list.html" import browse_list %}
{% from "components/table.html" import list_table, field, right_aligned_field_heading, hidden_field_heading %}
{% from "components/table.html" import list_table, field, right_aligned_field_heading, hidden_field_heading, text_field %}
{% block page_title %}
Platform admin GOV.UK Notify
@@ -63,11 +63,19 @@
<a href="{{ url_for('main.service_dashboard', service_id=item['id']) }}" class="browse-list-link">{{ item['name'] }}</a>
</div>
{% endcall %}
{% call field(status='error') %}
<span class="heading-medium">
{{ '' if item['restricted'] else 'Live' }}
</span>
{% endcall %}
{% if item['research_mode'] %}
{% call field() %}
<span class="research-mode">research mode</span>
{% endcall %}
{% elif not item['restricted'] %}
{% call field(status='error') %}
<span class="heading-medium">
Live
</span>
{% endcall %}
{% else %}
{{ text_field('') }}
{% endif %}
{% call field(align='right') %}
{{ big_number(item['sending'], smaller=True) }}
{% endcall %}