mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-20 10:24:39 -05: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.
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/table.html" import list_table, field, hidden_field_heading %}
|
|
{% from "components/api-key.html" import api_key %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
{% block service_page_title %}
|
|
Documentation
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-large">
|
|
Documentation
|
|
</h1>
|
|
|
|
<ul class="list list-bullet">
|
|
{% for name, url in [
|
|
('Java client', 'https://github.com/alphagov/notifications-java-client'),
|
|
('.NET client', 'https://github.com/alphagov/notifications-net-client'),
|
|
('Node JS client', 'https://github.com/alphagov/notifications-node-client'),
|
|
('PHP client', 'https://github.com/alphagov/notifications-php-client'),
|
|
('Python client', 'https://github.com/alphagov/notifications-python-client'),
|
|
('Ruby client', 'https://github.com/alphagov/notifications-ruby-client')
|
|
] %}
|
|
<li>
|
|
<a href="{{ url }}" target="_blank" rel="noopener noreferrer">{{ name }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
<li><a href="{{ url_for("main.integration_testing") }}">Integration testing</a></li>
|
|
</ul>
|
|
|
|
{{ page_footer(
|
|
secondary_link=url_for('.api_integration', service_id=current_service.id),
|
|
secondary_link_text='Back to API integration'
|
|
) }}
|
|
|
|
{% endblock %}
|