Skip to content
Snippets Groups Projects
base-apply.html 6.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • Todd Dembrey's avatar
    Todd Dembrey committed
    {% load static wagtailuserbar wagtailcore_tags wagtailimages_tags navigation_tags util_tags hijack_tags %}<!doctype html>
    
    <html class="no-js" lang="en">
        <head>
            {# TODO fallbacks if page is not defined e.g. for 404 page #}
            <meta charset="utf-8" />
    
            <meta name="viewport" content="width=device-width, initial-scale=1" />
    
            <title>{% block title_prefix %}{% if request.site.site_name %}{{ request.site.site_name }} | {% endif %}{% endblock %}{% block title %}{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}{% endblock %}{% block title_suffix %}{{ TITLE_SUFFIX }}{% endblock %}</title>
    
            <meta name="description" content="{% if page.search_description %}{{ page.search_description }}{% else %}{{ page.listing_summary }}{% endif %}" />
    
            <!-- favicons -->
            {% comment %}
    
                Generate favicons by https://realfavicongenerator.net using the following path: settings.STATIC_URL + img/favicons.
    
                Then favicon.ico should be copied to a directory called "public" in the application root and puppet does some magic to serve it up at the site root.
            {% endcomment %}
    
    Chris Lawton's avatar
    Chris Lawton committed
            <link rel="icon" sizes="144x144" href="{% static 'images/favicons/android-chrome-144.png' %}">
            <link rel="icon" type="image/png" sizes="16x16" href="{% static 'images/favicons/favicon-16.png' %}">
            <link rel="icon" type="image/png" sizes="32x32" href="{% static 'images/favicons/favicon-32.png' %}">
            <link rel="apple-touch-icon" sizes="76x76" href="{% static 'images/favicons/apple-icon-76.png' %}">
            <link rel="apple-touch-icon" sizes="120x120" href="{% static 'images/favicons/apple-icon-120.png' %}">
            <link rel="apple-touch-icon" sizes="152x152" href="{% static 'images/favicons/apple-icon-152.png' %}">
            <link rel="apple-touch-icon" sizes="180x180" href="{% static 'images/favicons/apple-icon-180.png' %}">
    
            <link rel="manifest" href="{% static 'images/favicons/site.webmanifest.json' %}">
    
    Chris Lawton's avatar
    Chris Lawton committed
            <meta name="msapplication-TileColor" content="#da532c">
            <meta name="msapplication-TileImage" content="{% static 'images/favicons/mstile-150.png' %}">
            <meta name="theme-color" content="#ffffff">
            <link rel="mask-icon" href="{% static 'images/favicons/safari-pinned-tab.svg' %}" color="#5bbad5">
    
            <script>document.querySelector('html').classList.replace('no-js', 'js');</script>
    
    
            <link rel="stylesheet" href="{% static 'css/normalize.css' %}">
    
            <link rel="stylesheet" href="{% static 'css/apply/main.css' %}">
    
    Todd Dembrey's avatar
    Todd Dembrey committed
            {# Hijack styling #}
    
            <link rel="stylesheet" href="{% static 'hijack/hijack-styles.css' %}" />
            {% block extra_css %}{% endblock %}
    
    Fredrik Jonsson's avatar
    Fredrik Jonsson committed
            <link rel="stylesheet" href="{% static 'css/print.css' %}" media="print">
    
            <script src="{% static 'js/jquery.min.js' %}"></script>
    
        <body class="{% block body_class %}light-grey-bg template-{{ page.get_verbose_name|slugify }}{% endblock %}">
    
    Todd Dembrey's avatar
    Todd Dembrey committed
            {% hijack_notification %}
    
    
            {% include "includes/sprites.html" %}
    
            {% wagtailuserbar %}
    
    
            {% include 'includes/messages.html' %}
    
            <header class="header">
    
    
                <div class="header__inner wrapper wrapper--large">
                    <a href="{% slugurl 'home' %}" aria-label="Home link">
                        <svg class="header__logo header__logo--desktop"><use xlink:href="#logo-desktop--dark"></use></svg>
                        <svg class="header__logo header__logo--mobile"><use xlink:href="#logo-mobile"></use></svg>
                    </a>
    
                    <div class="header__inner header__inner--mobile-buttons">
                        <button class="button button--left-space js-mobile-menu-toggle" aria-haspopup="true">
                            <svg class="icon icon--mobile-menu"><use xlink:href="#mobile-menu-toggle"></use></svg>
                        </button>
                    </div>
    
    
                    <section class="header__menus header__menus--desktop">
                        {% include "navigation/primarynav-apply.html" %}
                    </section>
    
                    <section class="header__menus header__menus--mobile">
                        <div class="header__inner header__inner--menu-open">
                            <a href="{% slugurl 'home' %}" aria-label="Home link">
                                <svg class="header__logo header__logo--mobile"><use xlink:href="#logo-mobile"></use></svg>
                            </a>
                            <div class="header__inner header__inner--mobile-buttons">
                                <button class="button button--left-space js-mobile-menu-close">
                                    <svg class="header__icon header__icon--cross icon icon--mobile-menu"><use xlink:href="#cross"></use></svg>
                                </button>
                            </div>
                        </div>
                        {% include "navigation/primarynav-apply.html" %}
    
                        <a href="{% url 'users:account' %}" class="link link--button-transparent link--mobile-standout">
                            <svg class="icon"><use xlink:href="#person-icon"></use></svg>
                            {{ request.user }}
                        </a>
    
                        <a href="{% url 'users_public:logout' %}" class="link link--button-transparent link--mobile-standout">Logout</a>
    
                    <div class="header__button-container">
    
                        <a href="{% url 'users:account' %}" class="button button--transparent button--narrow button--contains-icons">
    
                            <svg class="icon icon--person"><use xlink:href="#person-icon"></use></svg>
    
                        <a href="{% url 'users_public:logout' %}" class="button button--transparent button--narrow">
    
                            Log Out
                        </a>
                    </div>
                </div>
            </header>
    
    
            <main class="wrapper wrapper--large wrapper--main">
    
                {% block content %}{% endblock %}
            </main>
    
            <footer class="footer"></footer>
    
            <script src="{% static 'js/main.js' %}"></script>
    
            {% block extra_js %}{% endblock %}
        </body>
    </html>