mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-02 08:30:10 -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.
21 lines
386 B
HTML
21 lines
386 B
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/api-key.html" import api_key %}
|
|
|
|
{% block service_page_title %}
|
|
API info
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-large">
|
|
API info
|
|
</h1>
|
|
|
|
{{ template|string }}
|
|
|
|
<div class="bottom-gutter">
|
|
{{ api_key(template.id, name="Template ID", thing='template ID') }}
|
|
</div>
|
|
|
|
{% endblock %}
|