66 lines
2.6 KiB
HTML
66 lines
2.6 KiB
HTML
{% extends "base/page.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load passbook_is_active %}
|
|
{% load static %}
|
|
{% load passbook_user_settings %}
|
|
|
|
{% block page_content %}
|
|
<div class="pf-c-page__sidebar">
|
|
<div class="pf-c-page__sidebar-body">
|
|
<nav class="pf-c-nav" id="page-default-nav-example-primary-nav" aria-label="Global">
|
|
<section class="pf-c-nav__section">
|
|
<h2 class="pf-c-nav__section-title">{% trans 'General Settings' %}</h2>
|
|
<ul class="pf-c-nav__list">
|
|
<li class="pf-c-nav__item">
|
|
<a href="{% url 'passbook_core:user-settings' %}"
|
|
class="pf-c-nav__link {% is_active 'passbook_core:user-settings' %}">{% trans 'User Details' %}</a>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
{% user_stages as user_stages_loc %}
|
|
{% if user_stages_loc %}
|
|
<section class="pf-c-nav__section">
|
|
<h2 class="pf-c-nav__section-title">{% trans 'Stages' %}</h2>
|
|
<ul class="pf-c-nav__list">
|
|
{% for stage in user_stages_loc %}
|
|
<li class="pf-c-nav__item">
|
|
<a href="{% url stage.view_name %}" class="pf-c-nav__link {% is_active stage.view_name %}">
|
|
<i class="{{ stage.icon }}"></i>
|
|
{{ stage.name }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
{% endif %}
|
|
{% user_inlets as user_inlets_loc %}
|
|
{% if user_inlets_loc %}
|
|
<section class="pf-c-nav__section">
|
|
<h2 class="pf-c-nav__section-title">{% trans 'Sources' %}</h2>
|
|
<ul class="pf-c-nav__list">
|
|
{% for inlet in user_inlets_loc %}
|
|
<li class="pf-c-nav__item">
|
|
<a href="{{ inlet.view_name }}"
|
|
class="pf-c-nav__link {% if user_settings.view_name == request.get_full_path %} pf-m-current {% endif %}">
|
|
<i class="{{ inlet.icon }}"></i>
|
|
{{ inlet.name }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
{% endif %}
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
<main role="main" class="pf-c-page__main" tabindex="-1" id="main-content">
|
|
<section class="pf-c-page__main-section">
|
|
<div class="pf-l-split pf-m-gutter">
|
|
{% block page %}
|
|
{% endblock %}
|
|
</div>
|
|
</section>
|
|
</main>
|
|
{% endblock %}
|