diff options
author | David Lawrence <dkl@mozilla.com> | 2015-08-11 22:52:46 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-08-11 22:52:46 +0200 |
commit | 98503a61f92093a81a0c32615000ac0f9e9f6ccb (patch) | |
tree | 75c629098b325abb1353b9bcc55f37055d51ce39 /extensions/SecureMail/template/en/default | |
parent | a2a7527675ee7d6c40bf5c5e71a2b6f46f7734ee (diff) | |
download | bugzilla-98503a61f92093a81a0c32615000ac0f9e9f6ccb.tar.gz bugzilla-98503a61f92093a81a0c32615000ac0f9e9f6ccb.tar.xz |
Bug 1190029: Would like a way to see which groups are 'secure' groups in editusers.cgi when diagnosing password reset issues
Diffstat (limited to 'extensions/SecureMail/template/en/default')
-rw-r--r-- | extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl b/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl new file mode 100644 index 000000000..37b3277c9 --- /dev/null +++ b/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl @@ -0,0 +1,46 @@ +[%# 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. + #%] + +<tr> + <th>Has Secure Mail Key/Cert:</th> + <td> + [% IF user.public_key %]Yes[% ELSE %]No[% END %] + </td> +</tr> + +<tr> + <th>Member of Secure Mail Group:</th> + <td> + [% securemail_member = 0 %] + [% FOREACH group = user.groups %] + [% IF group.secure_mail %] + [% securemail_member = 1 %] + [% LAST %] + [% END %] + [% END %] + [% IF securemail_member %]Yes[% ELSE %]No[% END %] + </td> +</tr> + +<script type="text/javascript"> +$(function() { + 'use strict'; + var securemail_groups = []; + [% FOREACH group = groups %] + [% IF group.secure_mail %] + securemail_groups.push('[% group.id FILTER js %]'); + [% END %] + [% END %] + $(document).ready(function() { + for (var i = 0, l = securemail_groups.length; i < l; i++) { + $("label[for='group_" + securemail_groups[i] + "']") + .append('(Secure Mail)'); + } + }); +}); +</script> |