# Rights Reserved.
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
+ # Shane H. W. Travis <travis@sedsystems.ca>
#%]
[%# INTERFACE:
#%]
[% useqacontact = Param('useqacontact') %]
+[% usevotes = Param('usevotes') %]
<table>
[% IF Param('supportwatchers') %]
<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 bug is:</b>
</td>
<td rowspan="2" width="50%">
<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>
[% FOREACH reason = [
[% 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} %]>
'account/prefs/email.html.tmpl' => [
'watchedusers', # Email
- 'useqacontact ? \'5\' : \'4\'',
+ '(useqacontact AND usevotes) ? \'5\' : ((useqacontact OR usevotes) ? \'4\' : \'3\')',
'role',
'reason.name',
'reason.description',