aboutsummaryrefslogtreecommitdiff
path: root/src/django_pgpmailman/views/list.py
diff options
context:
space:
mode:
authorJ08nY2017-08-12 01:49:35 +0200
committerJ08nY2017-08-12 01:49:35 +0200
commit9e33fdaea8eaf5825542254afb55f25c1a63fc6b (patch)
tree2f0a7fe44eab13f9746ead7da5a60b1f03d0adfe /src/django_pgpmailman/views/list.py
parentb6df3c3cdcb4ca25b48cc316502ec39482afe20e (diff)
downloaddjango-pgpmailman-9e33fdaea8eaf5825542254afb55f25c1a63fc6b.tar.gz
django-pgpmailman-9e33fdaea8eaf5825542254afb55f25c1a63fc6b.tar.zst
django-pgpmailman-9e33fdaea8eaf5825542254afb55f25c1a63fc6b.zip
Diffstat (limited to 'src/django_pgpmailman/views/list.py')
-rw-r--r--src/django_pgpmailman/views/list.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/django_pgpmailman/views/list.py b/src/django_pgpmailman/views/list.py
index b99e332..dfab2f5 100644
--- a/src/django_pgpmailman/views/list.py
+++ b/src/django_pgpmailman/views/list.py
@@ -26,12 +26,28 @@ from django_pgpmailman.plugin import get_pgp_plugin
def pgp_list_index(request):
- return render(request, 'django_pgpmailman/index.html',
+ return render(request,
+ 'django_pgpmailman/index.html',
{'lists': get_pgp_plugin().lists})
def pgp_list_summary(request, list_id):
- return render(request, 'django_pgpmailman/summary.html',
+ return render(request, 'django_pgpmailman/list/summary.html',
+ {'pgp_list': get_pgp_plugin().get_list(list_id)})
+
+
+def pgp_list_key_management(request, list_id):
+ return render(request, 'django_pgpmailman/list/key_management.html',
+ {'pgp_list': get_pgp_plugin().get_list(list_id)})
+
+
+def pgp_list_encryption_settings(request, list_id):
+ return render(request, 'django_pgpmailman/list/encryption_settings.html',
+ {'pgp_list': get_pgp_plugin().get_list(list_id)})
+
+
+def pgp_list_signature_settings(request, list_id):
+ return render(request, 'django_pgpmailman/list/signature_settings.html',
{'pgp_list': get_pgp_plugin().get_list(list_id)})