mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-09 12:54:14 -05:00
GOV.UK Frontend gives `<main>` different padding on the top and bottom to us. This adds our spacing to `<main>` for pages without a side nav (except the product page which is special) and to the row containing the `<main>` and side nav sections on pages that have a side nav.
34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
{% extends "admin_template.html" %}
|
||
|
||
{% block per_page_title %}
|
||
{% block org_page_title %}{% endblock %} – {{ current_org.name }}
|
||
{% endblock %}
|
||
|
||
{% block main %}
|
||
<div class="govuk-width-container">
|
||
<div class="navigation-service">
|
||
{% if current_user.platform_admin %}
|
||
<a href="{{ url_for('.organisations') }}" class="navigation-organisation-link">All organisations</a>
|
||
{% endif %}
|
||
<div class="navigation-service-name">
|
||
{{ current_org.name }}
|
||
</div>
|
||
<a href="{{ url_for('main.choose_account') }}" class="navigation-service-switch">Switch service</a>
|
||
</div>
|
||
<div class="grid-row govuk-!-padding-bottom-12">
|
||
<div class="column-one-quarter">
|
||
{% include "org_nav.html" %}
|
||
</div>
|
||
<div class="column-three-quarters">
|
||
{% block beforeContent %}{% endblock %}
|
||
<main class="govuk-main-wrapper column-main govuk-!-padding-top-0 govuk-!-padding-bottom-0" id="main-content" role="main" >
|
||
{% block content %}
|
||
{% include 'flash_messages.html' %}
|
||
{% block maincolumn_content %}{% endblock %}
|
||
{% endblock %}
|
||
</main>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{% endblock %}
|