mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-12 09:24:15 -04:00
When we moved the ‘Switch service’ link out of the nav on non-service pages it removed any obvious way of getting back to your service on a page that doesn’t have the service navigation (the non-obvious way is to click ‘GOV.UK Notify’ in the black bar). So this commit adds a ‘Back to service’ link which does the same thing as clicking ‘GOV.UK Notify’ (tries to send you to your last-used service, sends you to the list of services if it can’t).
16 lines
436 B
HTML
16 lines
436 B
HTML
{% extends "admin_template.html" %}
|
|
|
|
{% block fullwidth_content %}
|
|
<div id="content">
|
|
{% if current_user.is_authenticated %}
|
|
<div class="navigation-service">
|
|
<a href="{{ url_for('main.show_all_services_or_dashboard') }}">Back to service</a>
|
|
</div>
|
|
{% endif %}
|
|
<main role="main">
|
|
{% include 'flash_messages.html' %}
|
|
{% block maincolumn_content %}{% endblock %}
|
|
</main>
|
|
</div>
|
|
{% endblock %}
|