mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-21 10:54:49 -05:00
We want it to be very clear whether you’re in live or training mode because: - you may be switching back and forth between them - doing something in live mode when you think you’re in training mode would have… consequences By adding a label next to the service name you’ll will have some indication, on every page, which mode you are in. Style of the label is based on the ‘Tag’ component from the Design System: https://design-system.service.gov.uk/components/tag/#showing-multiple-statuses
54 lines
2.2 KiB
HTML
54 lines
2.2 KiB
HTML
{% extends "admin_template.html" %}
|
||
|
||
{% set mainClasses = "govuk-!-padding-top-0 govuk-!-padding-bottom-0" %}
|
||
|
||
{% block per_page_title %}
|
||
{% block service_page_title %}{% endblock %} – {{ current_service.name }}
|
||
{% endblock %}
|
||
|
||
{% block main %}
|
||
<div class="govuk-width-container">
|
||
<div class="navigation-service">
|
||
{% if current_service.organisation_id %}
|
||
{% if current_user.platform_admin or
|
||
(current_user.belongs_to_organisation(current_service.organisation_id) and current_service.live) %}
|
||
<a href="{{ url_for('.organisation_dashboard', org_id=current_service.organisation_id) }}" class="govuk-link govuk-link--no-visited-state navigation-organisation-link">{{ current_service.organisation_name }}</a>
|
||
{% endif %}
|
||
{% endif %}
|
||
<div class="navigation-service-name govuk-!-font-weight-bold">
|
||
{{ current_service.name }}
|
||
{% if current_service.has_permission('broadcast') %}
|
||
{% if current_service.trial_mode %}
|
||
<span class="navigation-service-type navigation-service-type--training">Training</span>
|
||
{% else %}
|
||
<span class="navigation-service-type navigation-service-type--live">Live</span>
|
||
{% endif %}
|
||
{% endif %}
|
||
</div>
|
||
<a href="{{ url_for('main.choose_account') }}" class="govuk-link govuk-link--no-visited-state navigation-service-switch">Switch service</a>
|
||
</div>
|
||
<div class="govuk-grid-row govuk-!-padding-bottom-12">
|
||
{% if help %}
|
||
<div class="govuk-grid-column-one-third">
|
||
{% else %}
|
||
<div class="govuk-grid-column-one-quarter">
|
||
{% endif %}
|
||
{% include "main_nav.html" %}
|
||
</div>
|
||
{% if help %}
|
||
<div class="govuk-grid-column-two-thirds">
|
||
{% else %}
|
||
<div class="govuk-grid-column-three-quarters">
|
||
{% endif %}
|
||
{% block beforeContent %}{% endblock %}
|
||
<main class="govuk-main-wrapper column-main {{ mainClasses }}" id="main-content" role="main">
|
||
{% block content %}
|
||
{% include 'flash_messages.html' %}
|
||
{% block maincolumn_content %}{% endblock %}
|
||
{% endblock %}
|
||
</main>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{% endblock %}
|