diff options
author | Byron Jones <bjones@mozilla.com> | 2011-11-17 06:32:03 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2011-11-17 06:32:03 +0100 |
commit | 355f4c5d48d49bc0ab3f462ebce8ca5178ef380f (patch) | |
tree | 4d16c965672988d99a22fda4d6c8e6ebe1e2111b /template | |
parent | 2fad8bf261015505a6fce84ccb26db6912a6a617 (diff) | |
download | bugzilla-355f4c5d48d49bc0ab3f462ebce8ca5178ef380f.tar.gz bugzilla-355f4c5d48d49bc0ab3f462ebce8ca5178ef380f.tar.xz |
Bug 661901: hide bugmail recipients from new users
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/bug/process/bugmail.html.tmpl | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/template/en/default/bug/process/bugmail.html.tmpl b/template/en/default/bug/process/bugmail.html.tmpl index b0132a2fe..50f6e7aa8 100644 --- a/template/en/default/bug/process/bugmail.html.tmpl +++ b/template/en/default/bug/process/bugmail.html.tmpl @@ -26,7 +26,15 @@ [% PROCESS global/variables.none.tmpl %] -<dl> +[%# hide the recipient list by default from new users %] +[% show_recipients = + user.settings.post_bug_submit_action.value == 'nothing' + || user.in_group('canconfirm') + || !user.can_see_bug(mailing_bugid) +%] + +<dl id="bugmail_summary_[% mailing_bugid FILTER none %]" + [%~ ' class="bz_default_hidden"' UNLESS show_recipients %]> [% PROCESS emails description = "Email sent to" names = sent_bugmail.sent @@ -38,6 +46,27 @@ %] </dl> +[% IF !show_recipients %] + [% recipient_count = sent_bugmail.sent.size %] + <div id="bugmail_summary_placeholder_[% mailing_bugid FILTER none %]" + [%~ ' class="bz_default_hidden"' IF show_recipients %]> + [% IF recipient_count > 0 %] + Email sent to [% recipient_count FILTER html %] + recipient[% 's' UNLESS recipient_count == 1 %]. + [% ELSE %] + No emails were sent. + [% END %] + (<a href="#" onclick=" + YAHOO.util.Dom.removeClass( + 'bugmail_summary_[% mailing_bugid FILTER none %]', + 'bz_default_hidden'); + YAHOO.util.Dom.addClass( + 'bugmail_summary_placeholder_[% mailing_bugid FILTER none %]', + 'bz_default_hidden'); + return false;">show</a>) + </div> +[% END %] + [%############################################################################%] [%# Block for a set of email addresses #%] [%############################################################################%] |