aboutsummaryrefslogtreecommitdiff
path: root/src/django_pgpmailman/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/django_pgpmailman/views')
-rw-r--r--src/django_pgpmailman/views/list.py20
-rw-r--r--src/django_pgpmailman/views/user.py22
2 files changed, 40 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)})
diff --git a/src/django_pgpmailman/views/user.py b/src/django_pgpmailman/views/user.py
new file mode 100644
index 0000000..efc694d
--- /dev/null
+++ b/src/django_pgpmailman/views/user.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+# Copyright (C) 2017 Jan Jancar
+#
+# This file is a part of the Django Mailman PGP plugin.
+#
+# This program is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <http://www.gnu.org/licenses/>.
+from django.shortcuts import render
+
+
+def pgp_user_profile(request):
+ return render(request, 'django_pgpmailman/user/summary.html')