mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Patch for bug 267494: 'Voter' column should not appear in email preferences if param(usevotes) is false; patch by Shane H. W. Travis <travis@sedsystems.ca>, r=vladd, a=justdave.
This commit is contained in:
parent
394979ebce
commit
02ac073f7d
@ -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} %]>
|
||||
|
Loading…
Reference in New Issue
Block a user