diff --git a/app/templates/service_navigation.html b/app/templates/service_navigation.html index 6e87d50cd..8fb5bfc19 100644 --- a/app/templates/service_navigation.html +++ b/app/templates/service_navigation.html @@ -1,3 +1,37 @@ +{% macro navigation_service_name(service) %} + +{% endmacro %} + +{% macro broadcast_service_name_tag(trial_mode, broadcast_channel, allowed_broadcast_provider, left_margin=True) %} + {% set margin_class = "" if left_margin else "govuk-!-margin-left-0" %} + {% if trial_mode %} + Training + {% elif broadcast_channel == 'severe' %} + Live + {% elif broadcast_channel == 'test' %} + {{ broadcast_channel|title }} + {% if allowed_broadcast_provider == "all" %} + (all networks) + {% else %} + ({{ allowed_broadcast_provider|format_mobile_network }}) + {% endif %} + {% elif broadcast_channel == 'government' %} + Government + {% endif %} + +{% endmacro %} + diff --git a/app/templates/views/broadcast/tour/5.html b/app/templates/views/broadcast/tour/5.html index e1fa138de..2e35a9aec 100644 --- a/app/templates/views/broadcast/tour/5.html +++ b/app/templates/views/broadcast/tour/5.html @@ -1,4 +1,5 @@ {% from "components/banner.html" import banner_wrapper %} +{% from "service_navigation.html" import navigation_service_name %} {% extends "admin_template.html" %} @@ -11,9 +12,7 @@ {% block content %}