Merge pull request #3022 from alphagov/dont-show-org-🍞crumbs-in-trial-mode

Don't show org breadcrumbs for trial mode services
This commit is contained in:
Katie Smith
2019-06-26 10:22:18 +01:00
committed by GitHub
2 changed files with 26 additions and 1 deletions

View File

@@ -9,7 +9,8 @@
<div class="navigation-service">
<div class="navigation-service-name">
{% if current_service.organisation_id %}
{% if current_user.platform_admin or current_user.belongs_to_organisation(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) }}">{{ current_service.organisation.name }}</a>
<span class="navigation-breadcrumb"></span>
{% endif %}