mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-09 10:54:11 -04:00
In pages specific to a service (e.g. dashboard and sub pages) the title needs to distinguish which service it applies to. This is mainly to give context to screen reader users who could be managing multiple services. Implementing this uses template inheritance: `page_title` includes `per_page_title` includes `service_page_title` ‘GOV.UK Notify’ is inserted into every page title. Pages that set `service_page_title` get the service name inserted too.
147 lines
5.5 KiB
HTML
147 lines
5.5 KiB
HTML
{% extends "govuk_template.html" %}
|
||
{% from "components/banner.html" import banner %}
|
||
|
||
{% block head %}
|
||
<!--[if gt IE 8]><!-->
|
||
<link rel="stylesheet" media="screen" href="{{ asset_url('stylesheets/main.css') }}" />
|
||
<!--<![endif]-->
|
||
<style>
|
||
#global-header-bar { background-color: {{header_colour}} }
|
||
</style>
|
||
<!--[if IE 6]>
|
||
<link rel="stylesheet" media="screen" href="{{ asset_url('stylesheets/main-ie6.css') }}" />
|
||
<![endif]-->
|
||
<!--[if IE 7]>
|
||
<link rel="stylesheet" media="screen" href="{{ asset_url('stylesheets/main-ie7.css') }}" />
|
||
<![endif]-->
|
||
<!--[if IE 8]>
|
||
<link rel="stylesheet" media="screen" href="{{ asset_url('stylesheets/main-ie8.css') }}" />
|
||
<![endif]-->
|
||
{% endblock %}
|
||
|
||
{% block page_title %}
|
||
{% block per_page_title %}{% endblock %} – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block cookie_message %}
|
||
<p>
|
||
GOV.UK Notify uses cookies to make the site simpler.
|
||
<a href="{{ url_for("main.cookies") }}">Find out more about cookies</a>
|
||
</p>
|
||
{% endblock %}
|
||
|
||
{% block inside_header %}
|
||
<strong class='beta-badge'>Beta</strong>
|
||
{% endblock %}
|
||
{% block header_class %}with-proposition{% endblock %}
|
||
{% block proposition_header %}
|
||
<div class="header-proposition">
|
||
<div class="content">
|
||
<a href="#proposition-links" class="js-header-toggle menu">Menu</a>
|
||
<nav id="proposition-menu">
|
||
<ul id="proposition-links">
|
||
<li><a href="{{ url_for('main.support') }}">Support</a></li>
|
||
{% if current_user.is_authenticated %}
|
||
<li>
|
||
<a href="{{ url_for('main.user_profile') }}">{{ current_user.name }}</a>
|
||
</li>
|
||
{% if current_user.has_permissions(admin_override=True) %}
|
||
<li>
|
||
<a href="{{ url_for('main.platform_admin') }}">Platform admin</a>
|
||
</li>
|
||
<li>
|
||
<a href="{{ url_for('main.view_providers') }}">Providers</a>
|
||
</li>
|
||
{% endif %}
|
||
<li>
|
||
<a href="{{ url_for('main.sign_out')}}">Sign out</a>
|
||
</li>
|
||
{% else %}
|
||
<li>
|
||
<a href="{{ url_for('main.sign_in' )}}">Sign in</a>
|
||
</li>
|
||
{% endif %}
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
{% endblock %}
|
||
|
||
|
||
{% set global_header_text = "GOV.UK <span id='product-name'>Notify</span>"|safe %}
|
||
|
||
{% set homepage_url = url_for('main.show_all_services_or_dashboard') %}
|
||
|
||
{% block content %}
|
||
{% block fullwidth_content %}{% endblock %}
|
||
{% endblock %}
|
||
|
||
{% block footer_top %}
|
||
<div class="footer-categories">
|
||
<div class="footer-categories-wrapper">
|
||
<div class="grid-row">
|
||
<div class="column-one-third">
|
||
<h2>Support</h2>
|
||
<ul>
|
||
<li><a href="https://status.notifications.service.gov.uk">System status</a></li>
|
||
<li><a href="{{ url_for('main.support') }}">Support</a></li>
|
||
<li><a href="https://ukgovernmentdigital.slack.com/messages/govuk-notify">Chat with the Notify team</a></li>
|
||
</ul>
|
||
</div>
|
||
<div class="column-one-third">
|
||
<h2>About</h2>
|
||
<ul>
|
||
<li><a href="{{ url_for("main.terms") }}">Terms of use</a></li>
|
||
<li><a href="{{ url_for("main.trial_mode") }}">Trial mode</a></li>
|
||
<li><a href="{{ url_for("main.pricing") }}">Pricing</a></li>
|
||
<li><a href="{{ url_for("main.delivery_and_failure") }}">Delivery and failure</a></li>
|
||
<li><a href="https://www.gov.uk/performance/govuk-notify">Performance</a></li>
|
||
</ul>
|
||
</div>
|
||
<div class="column-one-third">
|
||
<h2>API documentation</h2>
|
||
<ul>
|
||
{% for language, url in [
|
||
('Java', 'https://github.com/alphagov/notifications-java-client'),
|
||
('.NET', 'https://github.com/alphagov/notifications-net-client'),
|
||
('Node JS', 'https://github.com/alphagov/notifications-node-client'),
|
||
('PHP', 'https://github.com/alphagov/notifications-php-client'),
|
||
('Python', 'https://github.com/alphagov/notifications-python-client'),
|
||
('Ruby', 'https://github.com/alphagov/notifications-ruby-client')
|
||
] %}
|
||
<li><a href="{{ url }}" target="_blank" rel="noopener noreferrer">{{ language }} client</a></li>
|
||
{% endfor %}
|
||
<li><a href="{{ url_for("main.integration_testing") }}">Integration testing</a></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{% endblock %}
|
||
|
||
{% block footer_support_links %}
|
||
<nav class="footer-nav">
|
||
Built by the <a href="https://www.gov.uk/government/organisations/government-digital-service">Government Digital Service</a>
|
||
<a href="{{ url_for("main.cookies") }}">Cookies</a>
|
||
{% if current_service.research_mode %}
|
||
<span id="research-mode" class="research-mode">research mode</span>
|
||
{% endif %}
|
||
</nav>
|
||
{% endblock %}
|
||
|
||
{% block body_end %}
|
||
<script type="text/javascript" src="{{ asset_url('javascripts/all.js') }}" /></script>
|
||
<script>
|
||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||
ga('create', 'UA-75215134-1', 'auto');
|
||
// strip UUIDs
|
||
page = (window.location.pathname + window.location.search).replace(
|
||
/[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}/g, '…'
|
||
)
|
||
ga('send', 'pageview', page);
|
||
</script>
|
||
{% endblock %}
|