Commit e360885f authored by J08nY's avatar J08nY

Add and use template chunks.

parent ccbc6ace
Pipeline #11073764 passed with stage
in 1 minute and 34 seconds
{% load i18n %}
{% load staticfiles %}
{% load gravatar %}
{% load chunks %}
<!DOCTYPE html>
<html lang="en">
<head>
......@@ -27,27 +28,7 @@
</div>
<div class="collapse navbar-collapse" id="header-nav">
<ul class="nav navbar-nav">
{% if 'postorius' in INSTALLED_APPS %}
<ul class="nav navbar-nav navbar-right"><li>
{% if mlist %}
<a href="{% url 'list_summary' mlist.list_id %}">
<span class="fa fa-cog"></span>
{% trans 'Manage this list' %}
</a>
{% else %}
<a href="{% url 'list_index' %}">
<span class="fa fa-cog"></span>
{% trans 'Manage lists' %}
</a>
{% endif %}
</li></ul>
{% endif %}
{% if 'hyperkitty' in INSTALLED_APPS %}
<li><a href="{% url 'hk_root' %}">
<span class="glyphicon glyphicon-comment"></span>
{% trans 'Archives' %}
</a></li>
{% endif %}
{% app_chunk 'navbar' %}
</ul>
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
......@@ -67,18 +48,7 @@
<span class="glyphicon glyphicon-lock"></span>
{% trans 'PGP settings' %}
</a></li>
{% if 'postorius' in INSTALLED_APPS %}
<li><a href="{% url 'ps_user_profile' %}">
<span class="fa fa-cog"></span>
{% trans 'Mailman settings' %}
</a></li>
{% endif %}
{% if 'hyperkitty' in INSTALLED_APPS %}
<li><a href="{% url 'hk_user_profile' %}">
<span class="glyphicon glyphicon-comment"></span>
{% trans 'Posting activity' %}
</a></li>
{% endif %}
{% app_chunk 'menu' %}
<li role="separator" class="divider"></li>
<li><a href="{% url LOGOUT_URL %}?next={% url 'pgp_list_index' %}">
<span class="glyphicon glyphicon-log-out"></span>
......
{% load i18n %}
<li><a href="{% url 'pgp_user_profile' %}">
<span class="fa fa-cog"></span>
{% trans 'PGP settings' %}
</a></li>
\ No newline at end of file
{% load i18n %}
<li role="presentation"><a role="menuitem" tabindex="-1" href="{% url 'pgp_user_profile' %}">
<span class="fa fa-cog"></span>
{% trans 'PGP settings' %}
</a></li>
\ No newline at end of file
{% load i18n %}
{% if mlist %}
<a href="{% url 'pgp_list_summary' list_id=mlist.list_id %}">
<span class="fa fa-cog"></span>
{% trans 'Manage PGP' %}
</a>
{% else %}
<a href="{% url 'pgp_list_index' %}">
<span class="fa fa-cog"></span>
{% trans 'Manage PGP lists' %}
</a>
{% endif %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment