diff options
author | David Lawrence <dkl@mozilla.com> | 2015-10-06 08:37:10 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-10-06 08:37:10 +0200 |
commit | 38229739b7cee263208d39b2c55b942e4d21c632 (patch) | |
tree | d9d695f05db21989d06188c9ec6c00228f0b5ad6 /template/en/default/admin/groups | |
parent | f8f537a8f05127b13a25c5f3f579364bcee6bbb5 (diff) | |
download | bugzilla-38229739b7cee263208d39b2c55b942e4d21c632.tar.gz bugzilla-38229739b7cee263208d39b2c55b942e4d21c632.tar.xz |
Bug 1196620 - support automatic removal of inactive users from groups
Diffstat (limited to 'template/en/default/admin/groups')
5 files changed, 99 insertions, 0 deletions
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 @@ </td> </tr> + <tr> + <th>Idle Member Removal:</th> + <td colspan="3"> + <input type="text" size="5" maxlength="5" id="idle_member_removal" name="idle_member_removal"> + days (setting to 0 disables this feature) + </td> + </tr> + [% Hook.process('field') %] </table> 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 @@ </td> </tr> + <tr> + <th> + Idle Member Removal: + </th> + <td> + <input type="text" size="5" maxlength="5" id="idle_member_removal" + name="idle_member_removal" value="[% group.idle_member_removal FILTER html %]"> + days (setting to 0 disables this feature) + </td> + </tr> + [% IF group.is_bug_group %] <tr> <th>Use For [% terms.Bugs %]:</th> 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 %] + +<!doctype html> +<html> + +<head> + <title>[[% terms.Bugzilla %]] Ilde Group Member Removal Notification</title> +</head> + +<body bgcolor="#ffffff"> + +<h3>Idle Group Member Removal Notification</h3> + +<p> This email is to notify you, as the group owner for the <strong>[% group.name FILTER html %]</strong> +group, that the following accounts are no longer members of the group. Accounts who have not logged +in to [% terms.Bugzilla %] in <strong>[% group.idle_member_removal FILTER html %]</strong> days are +automatically removed.</p> + +<ul> +[% FOREACH user = users %] + <li>[% user.identity FILTER html %]</li> +[% END %] +</ul> + +<div style="font-size: 90%; color: #666666"> + <hr style="border: 1px dashed #969696"> + <b>You are receiving this mail because:</b> + <ul> + <li>You are a group owner.</li> + </ul> +</div> +@@body-headers@@ +</body> +</html> 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@@ |