mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
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:
@@ -112,7 +112,7 @@
|
||||
Built by the <a href="https://www.gov.uk/government/organisations/government-digital-service">Government Digital Service</a>
|
||||
<a href="{{ url_for("main.cookies") }}">Cookies</a>
|
||||
{% if current_service.research_mode %}
|
||||
<span id="research-mode" style="font-weight: bold; display: inline-block; padding: 5px 10px; background: #005EA5; color: #fff; border-radius: 2px;">research mode</span>
|
||||
<span id="research-mode" class="research-mode">research mode</span>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% endblock %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user