Files
notifications-admin/app/templates/withnav_template.html
T

54 lines
2.2 KiB
HTML
Raw Normal View History

2015-12-14 16:37:15 +00:00
{% extends "admin_template.html" %}
2019-10-14 16:23:53 +01:00
{% set mainClasses = "govuk-!-padding-top-0 govuk-!-padding-bottom-0" %}
2017-02-13 10:45:15 +00:00
{% block per_page_title %}
{% block service_page_title %}{% endblock %} {{ current_service.name }}
{% endblock %}
{% block main %}
<div class="govuk-width-container">
2016-11-22 17:15:31 +00:00
<div class="navigation-service">
2019-06-21 14:05:00 +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) %}
2020-03-20 08:42:33 +00:00
<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>
2019-06-20 09:53:21 +01:00
{% endif %}
2019-06-21 14:05:00 +01:00
{% endif %}
2019-12-11 20:33:57 +00:00
<div class="navigation-service-name govuk-!-font-weight-bold">
2016-11-22 17:15:31 +00:00
{{ current_service.name }}
{% if current_service.has_permission('broadcast') %}
{% if current_service.trial_mode %}
<span class="navigation-service-type navigation-service-type--training">Training</span>
{% else %}
<span class="navigation-service-type navigation-service-type--live">Live</span>
{% endif %}
{% endif %}
2017-02-13 10:46:56 +00:00
</div>
<a href="{{ url_for('main.choose_account') }}" class="govuk-link govuk-link--no-visited-state navigation-service-switch">Switch service</a>
2016-11-22 17:15:31 +00:00
</div>
2020-02-19 11:57:15 +00:00
<div class="govuk-grid-row govuk-!-padding-bottom-12">
2017-04-27 15:20:25 +01:00
{% if help %}
<div class="govuk-grid-column-one-third">
2017-04-27 15:20:25 +01:00
{% else %}
<div class="govuk-grid-column-one-quarter">
2017-04-27 15:20:25 +01:00
{% endif %}
2019-10-14 16:23:53 +01:00
{% include "main_nav.html" %}
</div>
{% if help %}
<div class="govuk-grid-column-two-thirds">
{% else %}
<div class="govuk-grid-column-three-quarters">
{% endif %}
{% block beforeContent %}{% endblock %}
<main class="govuk-main-wrapper column-main {{ mainClasses }}" id="main-content" role="main">
{% block content %}
{% include 'flash_messages.html' %}
{% block maincolumn_content %}{% endblock %}
{% endblock %}
</main>
</div>
2016-01-22 10:57:49 +00:00
</div>
</div>
2015-12-15 08:20:25 +00:00
{% endblock %}