Merge pull request #3642 from alphagov/live-broadcast-tag

Show an indication that a broadcast service is live
This commit is contained in:
Chris Hill-Scott
2020-09-23 15:32:33 +01:00
committed by GitHub
3 changed files with 63 additions and 9 deletions

View File

@@ -17,8 +17,12 @@
{% endif %}
<div class="navigation-service-name govuk-!-font-weight-bold">
{{ current_service.name }}
{% if current_service.has_permission('broadcast') and current_service.trial_mode %}
<span class="navigation-service-type--training navigation-service-type--training--with-arrow">Training</span>
{% 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>