From 38229739b7cee263208d39b2c55b942e4d21c632 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 6 Oct 2015 14:37:10 +0800 Subject: Bug 1196620 - support automatic removal of inactive users from groups --- template/en/default/admin/groups/create.html.tmpl | 8 +++++ template/en/default/admin/groups/edit.html.tmpl | 11 ++++++ .../email/idle-member-removal-header.txt.tmpl | 12 +++++++ .../groups/email/idle-member-removal.html.tmpl | 42 ++++++++++++++++++++++ .../groups/email/idle-member-removal.txt.tmpl | 26 ++++++++++++++ 5 files changed, 99 insertions(+) create mode 100644 template/en/default/admin/groups/email/idle-member-removal-header.txt.tmpl create mode 100644 template/en/default/admin/groups/email/idle-member-removal.html.tmpl create mode 100644 template/en/default/admin/groups/email/idle-member-removal.txt.tmpl (limited to 'template/en/default/admin/groups') diff --git a/template/en/default/admin/groups/create.html.tmpl b/template/en/default/admin/groups/create.html.tmpl index e5ffb7819..a2301e75a 100644 --- a/template/en/default/admin/groups/create.html.tmpl +++ b/template/en/default/admin/groups/create.html.tmpl @@ -60,6 +60,14 @@ + + Idle Member Removal: + + + days (setting to 0 disables this feature) + + + [% Hook.process('field') %] diff --git a/template/en/default/admin/groups/edit.html.tmpl b/template/en/default/admin/groups/edit.html.tmpl index fb54c2c0d..f0dce8c85 100644 --- a/template/en/default/admin/groups/edit.html.tmpl +++ b/template/en/default/admin/groups/edit.html.tmpl @@ -111,6 +111,17 @@ + + + Idle Member Removal: + + + + days (setting to 0 disables this feature) + + + [% IF group.is_bug_group %] Use For [% terms.Bugs %]: diff --git a/template/en/default/admin/groups/email/idle-member-removal-header.txt.tmpl b/template/en/default/admin/groups/email/idle-member-removal-header.txt.tmpl new file mode 100644 index 000000000..b15286073 --- /dev/null +++ b/template/en/default/admin/groups/email/idle-member-removal-header.txt.tmpl @@ -0,0 +1,12 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] +[% PROCESS global/variables.none.tmpl %] +From: [% Param('mailfrom') %] +To: [% group.owner.email %] +Subject: [[% terms.BugzillaTitle %]] Idle group members removed from [% group.name %] +X-Bugzilla-Type: admin diff --git a/template/en/default/admin/groups/email/idle-member-removal.html.tmpl b/template/en/default/admin/groups/email/idle-member-removal.html.tmpl new file mode 100644 index 000000000..1d4f63698 --- /dev/null +++ b/template/en/default/admin/groups/email/idle-member-removal.html.tmpl @@ -0,0 +1,42 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% PROCESS global/variables.none.tmpl %] + + + + + + [[% terms.Bugzilla %]] Ilde Group Member Removal Notification + + + + +

Idle Group Member Removal Notification

+ +

This email is to notify you, as the group owner for the [% group.name FILTER html %] +group, that the following accounts are no longer members of the group. Accounts who have not logged +in to [% terms.Bugzilla %] in [% group.idle_member_removal FILTER html %] days are +automatically removed.

+ + + +
+
+ You are receiving this mail because: + +
+@@body-headers@@ + + diff --git a/template/en/default/admin/groups/email/idle-member-removal.txt.tmpl b/template/en/default/admin/groups/email/idle-member-removal.txt.tmpl new file mode 100644 index 000000000..18fc373fc --- /dev/null +++ b/template/en/default/admin/groups/email/idle-member-removal.txt.tmpl @@ -0,0 +1,26 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% PROCESS global/variables.none.tmpl %] + +Idle Group Member Removal Notification + +This email is to notify you, as the group owner for the +'[% group.name %]' group, that the following accounts are no +longer members of the group. Accounts who have not logged in +to [% terms.BugzillaTitle %] in '[% group.idle_member_removal %]' days +are automatically removed. + +[% FOREACH user = users %] +* [% user.identity %] +[% END %] + +-- +You are receiving this mail because: you are a group owner. + +@@body-headers@@ -- cgit v1.2.3-24-g4f1b