{# Minimal -- A base template which largely replaces the standard base template, primarily used for frontage pages before the user has logged into the admin. For example this includes the sign-in and reset password pages. To pass content to this page, simply replace the `main` block similar to how you would with the standard `base.html` template. If you have any secondary content, you can also pass a `footer` block. Any content passed to this will appear under the `main` darker content area. By default a primary heading is set using the `project_name` variable and a secondary heading set using the `primary_heading` variable. You can overide either of these variables in your local template or optionally overide the entire `header` block to replace or remove the header. -------------------------------------------------------------------------------- {% extends "manhattan/manage/minimal.html" %} {% block main -%} ... {%- endblock %} {% block footer -%} ... {%- endblock %} -------------------------------------------------------------------------------- #} {% extends "manhattan/manage/base.html" %} {%- block head_end -%} {# Prevent the referrer data being leaked from minimal pages (important for pages such as 'accept invite' and 'set new password'). #} {{ super() }} {%- endblock -%} {% block page %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}
{% block header -%} {% if project_name or primary_heading %}
{% if project_name %}

{{ project_name }}

{% endif %} {% if primary_heading %}

{{ primary_heading }}

{% endif %}
{% endif %} {%- endblock %}
{% block main %}{% endblock %}
{% if self.footer() != '' %} {% endif %}
{% endblock %}