summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/groups/create.html.tmpl8
-rw-r--r--template/en/default/admin/groups/edit.html.tmpl11
-rw-r--r--template/en/default/admin/groups/email/idle-member-removal-header.txt.tmpl12
-rw-r--r--template/en/default/admin/groups/email/idle-member-removal.html.tmpl42
-rw-r--r--template/en/default/admin/groups/email/idle-member-removal.txt.tmpl26
-rw-r--r--template/en/default/global/messages.html.tmpl2
6 files changed, 101 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@@
diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl
index 83b20f4f6..b5c75bcc3 100644
--- a/template/en/default/global/messages.html.tmpl
+++ b/template/en/default/global/messages.html.tmpl
@@ -411,6 +411,8 @@
<li>The group icon URL has been updated.</li>
[% CASE 'owner_user_id' %]
<li>The group owner was updated.</li>
+ [% CASE 'idle_member_removal' %]
+ <li>The idle member removal value has been updated.</li>
[% CASE 'members_add' %]
<li>The following groups are now members of this group:
[%+ changes.members_add.join(', ') FILTER html %]</li>