2020-02-27 13:59:34 +00:00
|
|
|
{% extends "base/skeleton.html" %}
|
|
|
|
|
|
|
|
{% load static %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
2020-05-15 08:54:31 +00:00
|
|
|
{% load passbook_is_active %}
|
|
|
|
{% load passbook_utils %}
|
2020-02-27 13:59:34 +00:00
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
{% include 'partials/messages.html' %}
|
|
|
|
<div class="pf-c-page" id="page-default-nav-example">
|
|
|
|
<a class="pf-c-skip-to-content pf-c-button pf-m-primary" href="#main-content">{% trans 'Skip to content' %}</a>
|
|
|
|
<header role="banner" class="pf-c-page__header ws-page-header">
|
|
|
|
<div class="pf-c-page__header-brand">
|
|
|
|
<div class="pf-c-page__header-brand-toggle">
|
|
|
|
<button class="pf-c-button pf-m-plain" type="button" id="page-default-nav-example-nav-toggle"
|
|
|
|
aria-label="Global navigation" aria-expanded="true"
|
|
|
|
aria-controls="page-default-nav-example-primary-nav">
|
|
|
|
<i class="fas fa-bars" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<a class="pf-c-page__header-brand-link">
|
2020-09-13 15:13:23 +00:00
|
|
|
<div class="pf-c-brand pb-brand">
|
|
|
|
<img src="{% static 'passbook/logo.svg' %}" alt="passbook icon" />
|
|
|
|
<small><small>passbook</small></small>
|
|
|
|
</div>
|
2020-02-27 13:59:34 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pf-c-page__header-nav">
|
2020-06-09 11:11:54 +00:00
|
|
|
<nav class="pf-c-nav pf-m-horizontal" aria-label="Nav">
|
|
|
|
<ul class="pf-c-nav__list ws-top-nav">
|
2020-02-27 13:59:34 +00:00
|
|
|
<li class="pf-c-nav__item"><a class="pf-c-nav__link {% is_active_url 'passbook_core:overview' %}"
|
|
|
|
href="{% url 'passbook_core:overview' %}">{% trans 'Access' %}</a></li>
|
|
|
|
{% if user.is_superuser %}
|
2020-05-19 18:29:02 +00:00
|
|
|
<li class="pf-c-nav__item"><a class="pf-c-nav__link {% is_active_app 'passbook_admin' %}"
|
2020-02-27 13:59:34 +00:00
|
|
|
href="{% url 'passbook_admin:overview' %}">{% trans 'Administrate' %}</a></li>
|
2020-06-30 08:23:54 +00:00
|
|
|
<li class="pf-c-nav__item"><a class="pf-c-nav__link {% is_active_url 'passbook_audit:log' %}"
|
|
|
|
href="{% url 'passbook_audit:log' %}">{% trans 'Monitor' %}</a></li>
|
2020-02-27 13:59:34 +00:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<div class="pf-c-page__header-tools">
|
|
|
|
<div class="pf-c-page__header-tools-group pf-m-icons">
|
2020-06-21 13:09:01 +00:00
|
|
|
<a href="{% url 'passbook_flows:default-invalidation' %}" class="pf-c-button pf-m-plain" type="button" aria-label="logout">
|
2020-02-27 13:59:34 +00:00
|
|
|
<i class="fas fa-sign-out-alt" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pf-c-page__header-tools-group">
|
|
|
|
<a href="{% url 'passbook_core:user-settings' %}" class="pf-c-button">
|
|
|
|
{{ user.username }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<img class="pf-c-avatar" src="{% gravatar user.email %}" alt="">
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
{% block page_content %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|