Merge pull request #3735 from alphagov/show-allowed-broadcast-provider

show allowed broadcast provider
This commit is contained in:
Leo Hemsted
2020-12-09 09:52:22 +00:00
committed by GitHub
3 changed files with 28 additions and 4 deletions

View File

@@ -46,7 +46,8 @@ class Service(JSONModel):
'consent_to_research',
'count_as_live',
'go_live_user',
'go_live_at'
'go_live_at',
'allowed_broadcast_provider',
}
TEMPLATE_TYPES = (

View File

@@ -19,10 +19,14 @@
{{ 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>
<span class="navigation-service-type navigation-service-type--training">Training
{% else %}
<span class="navigation-service-type navigation-service-type--live">Live</span>
<span class="navigation-service-type navigation-service-type--live">Live
{% endif %}
{% if current_service.allowed_broadcast_provider %}
({{ current_service.allowed_broadcast_provider }})
{% endif %}
</span>
{% endif %}
</div>
<a href="{{ url_for('main.choose_account') }}" class="govuk-link govuk-link--no-visited-state navigation-service-switch">Switch service</a>