diff options
| author | J08nY | 2017-08-12 01:49:35 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-12 01:49:35 +0200 |
| commit | 9e33fdaea8eaf5825542254afb55f25c1a63fc6b (patch) | |
| tree | 2f0a7fe44eab13f9746ead7da5a60b1f03d0adfe /src/django_pgpmailman/views/list.py | |
| parent | b6df3c3cdcb4ca25b48cc316502ec39482afe20e (diff) | |
| download | django-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.py | 20 |
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)}) |
