mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Show organisation breadcrumbs
Added a breadcrumb link to a service's organisation to the withnav_template. This will only show if a service has an organisation and the current user is also a member of that org, or the current user is a platform admin user. Also removed a couple of unused fixtures from the client_request fixture.
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
<div id="content">
|
||||
<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) %}
|
||||
<a href="{{ url_for('.organisation_dashboard', org_id=current_service.organisation.id) }}">{{ current_service.organisation.name }}</a>
|
||||
<span class="navigation-breadcrumb"></span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{{ current_service.name }}
|
||||
</div>
|
||||
<a href="{{ url_for('main.choose_account') }}" class="navigation-service-switch">Switch service</a>
|
||||
|
||||
Reference in New Issue
Block a user