diff options
| author | J08nY | 2017-08-11 20:29:28 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-11 20:29:28 +0200 |
| commit | b6df3c3cdcb4ca25b48cc316502ec39482afe20e (patch) | |
| tree | b52d26b7a08c8aa127ff5ce477ac921dc80e576f /src/django_pgpmailman/templates | |
| parent | 7b05d2311f3b1727d9567c21f6d9eaac518ef187 (diff) | |
| download | django-pgpmailman-b6df3c3cdcb4ca25b48cc316502ec39482afe20e.tar.gz django-pgpmailman-b6df3c3cdcb4ca25b48cc316502ec39482afe20e.tar.zst django-pgpmailman-b6df3c3cdcb4ca25b48cc316502ec39482afe20e.zip | |
Add pubkey view for downloading list pubkey.
Diffstat (limited to 'src/django_pgpmailman/templates')
| -rw-r--r-- | src/django_pgpmailman/templates/django_pgpmailman/index.html | 48 | ||||
| -rw-r--r-- | src/django_pgpmailman/templates/django_pgpmailman/summary.html | 14 |
2 files changed, 42 insertions, 20 deletions
diff --git a/src/django_pgpmailman/templates/django_pgpmailman/index.html b/src/django_pgpmailman/templates/django_pgpmailman/index.html index b33b668..cbe309f 100644 --- a/src/django_pgpmailman/templates/django_pgpmailman/index.html +++ b/src/django_pgpmailman/templates/django_pgpmailman/index.html @@ -3,7 +3,7 @@ {% load pagination %} {% block head_title %} -{% trans 'PGP List Index' %} - {{ block.super }} + {% trans 'PGP List Index' %} - {{ block.super }} {% endblock %} {% block content %} @@ -16,31 +16,39 @@ <div class="table-responsive"> <table class="table table-bordered table-striped"> <thead> - <tr> - <th>{% trans 'List name' %}</th> - <th>{% trans 'Post address' %}</th> - <th>{% trans 'Description' %}</th> - </tr> + <tr> + <th>{% trans 'List name' %}</th> + <th>{% trans 'Post address' %}</th> + <th>{% trans 'Key fingerprint' %}</th> + <th>{% trans 'Description' %}</th> + </tr> </thead> <tbody> - {% for pgp_list in lists %} - {% with pgp_list.mlist as mlist %} - <tr> - <td> - <a href="{% url 'pgp_list_summary' list_id=mlist.list_id %}">{{ mlist.display_name }}</a> - {% if user.is_superuser and not mlist.settings.advertised %} ({% trans 'unadvertised' %}*){% endif %} - </td> - <td>{{ mlist.fqdn_listname }}</td> - <td>{{ pgp_list.key.fingerprint }}</td> - <td>{{ mlist.settings.description }}</td> - </tr> - {% endwith %} - {% endfor %} + {% for pgp_list in lists %} + {% with mlist=pgp_list.mlist %} + {% if user.is_superuser or mlist.settings.advertised %} + <tr> + <td> + <a href="{% url 'pgp_list_summary' list_id=pgp_list.list_id %}">{{ mlist.display_name }}</a> + {% if user.is_superuser and not mlist.settings.advertised %} + ({% trans 'unadvertised' %} + *){% endif %} + </td> + <td>{{ mlist.fqdn_listname }}</td> + <td> + <a href="{% url 'pgp_list_pubkey' list_id=pgp_list.list_id %}">{{ pgp_list.pubkey.fingerprint }}</a> + </td> + <td>{{ mlist.settings.description }}</td> + </tr> + {% endif %} + {% endwith %} + {% endfor %} </tbody> </table> </div> {% if user.is_superuser %} - <small>* {% trans 'Only admins see unadvertised lists in the list index.' %}</small> + <small> + * {% trans 'Only admins see unadvertised lists in the list index.' %}</small> {% endif %} {% paginator lists %} {% else %} diff --git a/src/django_pgpmailman/templates/django_pgpmailman/summary.html b/src/django_pgpmailman/templates/django_pgpmailman/summary.html new file mode 100644 index 0000000..5b5a60d --- /dev/null +++ b/src/django_pgpmailman/templates/django_pgpmailman/summary.html @@ -0,0 +1,14 @@ +{% 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 %} |
