summaryrefslogtreecommitdiffstats
path: root/template/en/default/account/prefs
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-11-11 22:00:49 +0100
committerjocuri%softhome.net <>2004-11-11 22:00:49 +0100
commitb383e71e7c475037c6431cfb4906f00abaa1dd29 (patch)
tree4e61625c0e17b5433e36f4ac09b79bc6a1043407 /template/en/default/account/prefs
parent05526608ac0fbad3a871a2653271abb05eea111e (diff)
downloadbugzilla-b383e71e7c475037c6431cfb4906f00abaa1dd29.tar.gz
bugzilla-b383e71e7c475037c6431cfb4906f00abaa1dd29.tar.xz
Patch for bug 267494 - If param(usevotes) not true, hide 'Voter' column in email preferences; patch by Shane H. W. Travis <travis@sedsystems.ca>, r=vladd, a=justdave.
Diffstat (limited to 'template/en/default/account/prefs')
-rw-r--r--template/en/default/account/prefs/email.html.tmpl13
1 files changed, 9 insertions, 4 deletions
diff --git a/template/en/default/account/prefs/email.html.tmpl b/template/en/default/account/prefs/email.html.tmpl
index 167954683..ded4d30e3 100644
--- a/template/en/default/account/prefs/email.html.tmpl
+++ b/template/en/default/account/prefs/email.html.tmpl
@@ -18,6 +18,7 @@
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
# Myk Melez <myk@mozilla.org>
+ # Shane H. W. Travis <travis@sedsystems.ca>
#%]
[%# INTERFACE:
@@ -35,6 +36,7 @@
[% PROCESS global/variables.none.tmpl %]
[% useqacontact = Param('useqacontact') %]
+[% usevotes = Param('usevotes') %]
<table>
[% IF Param('supportwatchers') %]
@@ -140,7 +142,7 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
<table width="100%" border="1">
<tr>
- <td colspan="[% useqacontact ? '5' : '4' %]" align="center" width="50%">
+ <td colspan="[% (useqacontact AND usevotes) ? '5' : ((useqacontact OR usevotes) ? '4' : '3') %]" align="center" width="50%">
<b>When my relationship to this [% terms.bug %] is:</b>
</td>
<td rowspan="2" width="50%">
@@ -163,9 +165,11 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
<td align="center" width="10%">
<b>CC</b>
</td>
- <td align="center" width="10%">
- <b>Voter</b>
- </td>
+ [% IF usevotes %]
+ <td align="center" width="10%">
+ <b>Voter</b>
+ </td>
+ [% END %]
</tr>
[% bugLabelLower = BLOCK %]
@@ -196,6 +200,7 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
[% FOREACH role = [ "Reporter", "Owner", "QAcontact", "CClist", "Voter" ]
%]
[% NEXT IF role == "QAcontact" AND NOT useqacontact %]
+ [% NEXT IF role == "Voter" AND NOT usevotes %]
<td align="center">
<input type="checkbox" name="email[% role %][% reason.name %]" value="on"
[% " checked" IF $role.${reason.name} %]>