mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Allow provider_restriction to be None or "all"
Until all the data is updated to always be "all", we have to handle the case of provider_restriction being set to None or "all" (which mean the same thing). The code can be tidied up once the broadcast provider_restriction is never None.
This commit is contained in:
@@ -435,7 +435,7 @@
|
||||
Off
|
||||
{% else %}
|
||||
{% if current_service.live and current_service.broadcast_channel == "severe" %}Live{% endif %}
|
||||
{% if current_service.live and current_service.broadcast_channel == "test" %}Test {% if current_service.allowed_broadcast_provider %}({{ current_service.allowed_broadcast_provider|format_mobile_network }}){% else %}(All networks){% endif %}{%endif%}
|
||||
{% if current_service.live and current_service.broadcast_channel == "test" %}Test {% if current_service.allowed_broadcast_provider and current_service.allowed_broadcast_provider != "all" %}({{ current_service.allowed_broadcast_provider|format_mobile_network }}){% else %}(All networks){% endif %}{%endif%}
|
||||
{% if not current_service.live%}Training {% endif%}
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
{% else %}
|
||||
<span class="navigation-service-type navigation-service-type--live">Live
|
||||
{% endif %}
|
||||
{% if current_service.allowed_broadcast_provider %}
|
||||
{% if current_service.allowed_broadcast_provider and current_service.allowed_broadcast_provider != "all" %}
|
||||
({{ current_service.allowed_broadcast_provider }})
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user