2021-05-19 09:39:38 +01:00
|
|
|
{% macro navigation_service_name(service) %}
|
2023-06-08 13:12:00 -04:00
|
|
|
<div class="navigation-service-name font-body-2xl bold">
|
2021-05-19 09:39:38 +01:00
|
|
|
{{ service.name }}
|
|
|
|
|
{% if not service.active %}
|
|
|
|
|
<span class="navigation-service-type navigation-service-type--suspended">Suspended</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
2023-06-08 13:12:00 -04:00
|
|
|
<div class="navigation-service margin-top-2 display-flex flex-align-end flex-justify">
|
2021-05-13 14:17:28 +01:00
|
|
|
{% 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 %}
|
2021-05-19 09:39:38 +01:00
|
|
|
{{ navigation_service_name(current_service) }}
|
2023-06-08 13:12:00 -04:00
|
|
|
<a href="{{ url_for('main.choose_account') }}" class="usa-link margin-bottom-2">Switch service</a>
|
2021-05-13 14:17:28 +01:00
|
|
|
</div>
|