From 83b96e633d4db6188d5ef05d8fe471f05d954dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Thu, 3 May 2018 07:42:59 +0000 Subject: [PATCH] HyperKitty: add GDPR warning on the login page --- roles/mailman/files/login_extra_top.html | 6 ++++++ roles/mailman/tasks/main.yml | 12 ++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 roles/mailman/files/login_extra_top.html diff --git a/roles/mailman/files/login_extra_top.html b/roles/mailman/files/login_extra_top.html new file mode 100644 index 0000000000..e1713c0450 --- /dev/null +++ b/roles/mailman/files/login_extra_top.html @@ -0,0 +1,6 @@ +

+By subscribing or posting to these mailing lists, you agree that any email +to the list is public and viewable worldwide (unless it's one of the few private mailing-lists). +For more details, see our +Privacy policy. +

diff --git a/roles/mailman/tasks/main.yml b/roles/mailman/tasks/main.yml index 79a1962683..882ed98327 100644 --- a/roles/mailman/tasks/main.yml +++ b/roles/mailman/tasks/main.yml @@ -341,9 +341,12 @@ state=directory owner=root group=root mode=0755 tags: mailman -- name: create the hyperkitty templates override dir - file: path="{{ mailman_webui_basedir }}/templates/hyperkitty" +- name: create the hyperkitty templates override dirs + file: path="{{ mailman_webui_basedir }}/templates/{{ item }}" state=directory owner=root group=root mode=0755 + with_items: + - hyperkitty + - django_mailman3 tags: mailman - name: install our fedora-specific logo @@ -371,6 +374,11 @@ dest="{{ mailman_webui_basedir }}/templates/hyperkitty/headers.html" tags: mailman +- name: install our fedora-specific login page extension + copy: src=login_extra_top.html + dest="{{ mailman_webui_basedir }}/templates/django_mailman3/login_extra_top.html" + tags: mailman + - name: Install our fedmenu js hook template: src=bottom.html dest="{{mailman_webui_basedir }}/templates/hyperkitty/bottom.html"