Skip to content

Commit d10d4b7

Browse files
authored
ElectionDay: Fix missing indent if no results for complex vote
TYPE: Bugfix LINK: ogc-2850
1 parent d48491f commit d10d4b7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/onegov/election_day/templates/archive.pt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@
173173
</td>
174174
</tal:block>
175175
<tal:block tal:case="False">
176-
<td></td>
177-
<td></td>
178176
</tal:block>
179177
</tal:block>
180178
<td class="right-aligned" tal:condition="vote.has_results and not communal_instance" >
@@ -197,41 +195,34 @@
197195
<td class="right-aligned" tal:condition="vote.has_results">
198196
${layout.format_number(vote.display_nays_percentage_proposal())}
199197
</td>
200-
<td></td>
201198
</tr>
202199
<tr>
203200
<th tal:define="prefix vote.title_prefix(request)" class="right-aligned-small title-indent">
204201
<span> -</span>
205202
<span tal:condition="vote.title_counter_proposal">${vote.title_counter_proposal}</span>
206203
<span tal:condition="not vote.title_counter_proposal" i18n:translate>Counter Proposal</span>
207204
</th>
208-
<td>
209-
210-
</td>
205+
<td></td>
211206
<td class="right-aligned" tal:condition="vote.has_results">
212207
${layout.format_number(vote.display_yeas_percentage_counter_proposal())}
213208
</td>
214209
<td class="right-aligned" tal:condition="vote.has_results">
215210
${layout.format_number(vote.display_nays_percentage_counter_proposal())}
216211
</td>
217-
<td></td>
218212
</tr>
219213
<tr>
220214
<th tal:define="prefix vote.title_prefix(request)" class="right-aligned-small title-indent">
221215
<span> -</span>
222216
<span tal:condition="vote.title_tie_breaker">${vote.title_tie_breaker}</span>
223217
<span tal:condition="not vote.title_tie_breaker" i18n:translate>Tie-Breaker</span>
224218
</th>
225-
<td>
226-
227-
</td>
219+
<td></td>
228220
<td class="right-aligned" tal:condition="vote.has_results">
229221
${layout.format_number(vote.display_yeas_percentage_tie_breaker())}
230222
</td>
231223
<td class="right-aligned" tal:condition="vote.has_results">
232224
${layout.format_number(vote.display_nays_percentage_tie_breaker())}
233225
</td>
234-
<td></td>
235226
</tr>
236227
</tal:block>
237228

0 commit comments

Comments
 (0)