aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/django_pgpmailman/templates/django_pgpmailman/base.html36
-rw-r--r--src/django_pgpmailman/templates/django_pgpmailman/chunks/menu-large.html5
-rw-r--r--src/django_pgpmailman/templates/django_pgpmailman/chunks/menu.html5
-rw-r--r--src/django_pgpmailman/templates/django_pgpmailman/chunks/navbar.html12
4 files changed, 25 insertions, 33 deletions
diff --git a/src/django_pgpmailman/templates/django_pgpmailman/base.html b/src/django_pgpmailman/templates/django_pgpmailman/base.html
index 4dfba80..372b3f8 100644
--- a/src/django_pgpmailman/templates/django_pgpmailman/base.html
+++ b/src/django_pgpmailman/templates/django_pgpmailman/base.html
@@ -1,6 +1,7 @@
{% 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>
diff --git a/src/django_pgpmailman/templates/django_pgpmailman/chunks/menu-large.html b/src/django_pgpmailman/templates/django_pgpmailman/chunks/menu-large.html
new file mode 100644
index 0000000..8ffd5db
--- /dev/null
+++ b/src/django_pgpmailman/templates/django_pgpmailman/chunks/menu-large.html
@@ -0,0 +1,5 @@
+{% 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
diff --git a/src/django_pgpmailman/templates/django_pgpmailman/chunks/menu.html b/src/django_pgpmailman/templates/django_pgpmailman/chunks/menu.html
new file mode 100644
index 0000000..76be31f
--- /dev/null
+++ b/src/django_pgpmailman/templates/django_pgpmailman/chunks/menu.html
@@ -0,0 +1,5 @@
+{% 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
diff --git a/src/django_pgpmailman/templates/django_pgpmailman/chunks/navbar.html b/src/django_pgpmailman/templates/django_pgpmailman/chunks/navbar.html
new file mode 100644
index 0000000..9b21449
--- /dev/null
+++ b/src/django_pgpmailman/templates/django_pgpmailman/chunks/navbar.html
@@ -0,0 +1,12 @@
+{% 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