mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-08 04:13:41 -05:00
This will be used to put the back link in, since it it is before the `<main>` tag. We could have used the `beforeContent` block directly, but that sometimes already has content in - this means it's not clear when you also need to use `super()` inside the block and when you don't.
18 lines
706 B
HTML
18 lines
706 B
HTML
{% extends "admin_template.html" %}
|
|
|
|
{% set mainClasses = "govuk-!-padding-top-0 govuk-!-padding-bottom-12" %}
|
|
|
|
{% block beforeContent %}
|
|
{% if current_service and current_service.active and current_user.is_authenticated and current_user.belongs_to_service(current_service.id) %}
|
|
<div class="navigation-service">
|
|
<a href="{{ url_for('main.show_accounts_or_dashboard') }}" class="govuk-link govuk-link--no-visited-state navigation-service-back-to">Back to {{ current_service.name }}</a>
|
|
</div>
|
|
{% endif %}
|
|
{% block backLink %}{% endblock %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% include 'flash_messages.html' %}
|
|
{% block maincolumn_content %}{% endblock %}
|
|
{% endblock %}
|