diff options
Diffstat (limited to 'src/django_pgpmailman/templates')
8 files changed, 91 insertions, 15 deletions
diff --git a/src/django_pgpmailman/templates/django_pgpmailman/base.html b/src/django_pgpmailman/templates/django_pgpmailman/base.html index 3d1075d..4dfba80 100644 --- a/src/django_pgpmailman/templates/django_pgpmailman/base.html +++ b/src/django_pgpmailman/templates/django_pgpmailman/base.html @@ -80,7 +80,7 @@ </a></li> {% endif %} <li role="separator" class="divider"></li> - <li><a href="{% url LOGOUT_URL %}?next={% url 'list_index' %}"> + <li><a href="{% url LOGOUT_URL %}?next={% url 'pgp_list_index' %}"> <span class="glyphicon glyphicon-log-out"></span> {% trans 'Logout' %} </a></li> diff --git a/src/django_pgpmailman/templates/django_pgpmailman/list/encryption_settings.html b/src/django_pgpmailman/templates/django_pgpmailman/list/encryption_settings.html new file mode 100644 index 0000000..4e54afc --- /dev/null +++ b/src/django_pgpmailman/templates/django_pgpmailman/list/encryption_settings.html @@ -0,0 +1,13 @@ +{% extends "django_pgpmailman/base.html" %} +{% load i18n %} + +{% block head_title %} + {% trans 'PGP List' %} - {{ block.super }} +{% endblock %} + +{% block content %} + {% with mlist=pgp_list.mlist %} + {% include 'django_pgpmailman/list/nav.html' with nav_tab='encryption_settings' nav_title='Encryption settings'%} + + {% endwith %} +{% endblock content %} diff --git a/src/django_pgpmailman/templates/django_pgpmailman/list/key_management.html b/src/django_pgpmailman/templates/django_pgpmailman/list/key_management.html new file mode 100644 index 0000000..739c604 --- /dev/null +++ b/src/django_pgpmailman/templates/django_pgpmailman/list/key_management.html @@ -0,0 +1,13 @@ +{% extends "django_pgpmailman/base.html" %} +{% load i18n %} + +{% block head_title %} + {% trans 'PGP List' %} - {{ block.super }} +{% endblock %} + +{% block content %} + {% with mlist=pgp_list.mlist %} + {% include 'django_pgpmailman/list/nav.html' with nav_tab='key_management' nav_title='List key management' %} + + {% endwith %} +{% endblock content %} diff --git a/src/django_pgpmailman/templates/django_pgpmailman/list/nav.html b/src/django_pgpmailman/templates/django_pgpmailman/list/nav.html new file mode 100644 index 0000000..2cf9483 --- /dev/null +++ b/src/django_pgpmailman/templates/django_pgpmailman/list/nav.html @@ -0,0 +1,33 @@ +{% load i18n %} +{% if user.is_authenticated %} + <ul class="nav nav-pills"> + <li role="presentation" + class="{% if nav_tab == 'info' %}active{% endif %}"> + <a href="{% url 'pgp_list_summary' mlist.list_id %}">{% trans 'Info' %}</a> + </li> + <li role="presentation" + class="{% if nav_tab == 'key_management' %}active{% endif %}"> + <a href="{% url 'pgp_list_key_management' mlist.list_id %}">{% trans 'Key management' %}</a> + </li> + <li role="presentation" + class="{% if nav_tab == 'encryption_settings' %}active{% endif %}"> + <a href="{% url 'pgp_list_encryption_settings' mlist.list_id %}">{% trans 'Encryption settings' %}</a> + </li> + <li role="presentation" + class="{% if nav_tab == 'signature_settings' %}active{% endif %}"> + <a href="{% url 'pgp_list_signature_settings' mlist.list_id %}">{% trans 'Signature settings' %}</a> + </li> + </ul> +{% else %} + +{% endif %} +<div class="page-header"> + {% if nav_tab == 'info' %} + <h1>{{ mlist.display_name }} + <small>{{ mlist.fqdn_listname }}</small> + </h1> + {% else %} + <h3>{{ nav_title }} {% if nav_subtitle %} + <small>{{ nav_subtitle }}</small>{% endif %}</h3> + {% endif %} +</div> diff --git a/src/django_pgpmailman/templates/django_pgpmailman/list/signature_settings.html b/src/django_pgpmailman/templates/django_pgpmailman/list/signature_settings.html new file mode 100644 index 0000000..f71554e --- /dev/null +++ b/src/django_pgpmailman/templates/django_pgpmailman/list/signature_settings.html @@ -0,0 +1,13 @@ +{% extends "django_pgpmailman/base.html" %} +{% load i18n %} + +{% block head_title %} + {% trans 'PGP List' %} - {{ block.super }} +{% endblock %} + +{% block content %} + {% with mlist=pgp_list.mlist %} + {% include 'django_pgpmailman/list/nav.html' with nav_tab='signature_settings' nav_title='Signature settings' %} + + {% endwith %} +{% endblock content %} diff --git a/src/django_pgpmailman/templates/django_pgpmailman/list/summary.html b/src/django_pgpmailman/templates/django_pgpmailman/list/summary.html new file mode 100644 index 0000000..bbbb79c --- /dev/null +++ b/src/django_pgpmailman/templates/django_pgpmailman/list/summary.html @@ -0,0 +1,17 @@ +{% extends "django_pgpmailman/base.html" %} +{% load i18n %} + +{% block head_title %} + {% trans 'PGP List' %} - {{ block.super }} +{% endblock %} + +{% block content %} + {% with mlist=pgp_list.mlist %} + {% include 'django_pgpmailman/list/nav.html' with nav_tab='info' %} + + <p>{{ mlist.settings.description }}</p> + {% if mlist.settings.info %} + <p>{{ mlist.settings.info }}</p> + {% endif %} + {% endwith %} +{% endblock content %} diff --git a/src/django_pgpmailman/templates/django_pgpmailman/summary.html b/src/django_pgpmailman/templates/django_pgpmailman/summary.html deleted file mode 100644 index 5b5a60d..0000000 --- a/src/django_pgpmailman/templates/django_pgpmailman/summary.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "django_pgpmailman/base.html" %} -{% load i18n %} - -{% block head_title %} -{% trans 'PGP List' %} - {{ block.super }} -{% endblock %} - -{% block content %} - - <div class="page-header"> - <h1>{% trans 'PGP enabled Mailing List' %}</h1> - </div> - -{% endblock content %} diff --git a/src/django_pgpmailman/templates/django_pgpmailman/user/summary.html b/src/django_pgpmailman/templates/django_pgpmailman/user/summary.html new file mode 100644 index 0000000..aab98eb --- /dev/null +++ b/src/django_pgpmailman/templates/django_pgpmailman/user/summary.html @@ -0,0 +1 @@ +{% extends "django_pgpmailman/base.html" %}
\ No newline at end of file |
