Commit 6ee13212 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Hide intermediate voting results



In order to make votes as neutral as possible, current yes/no votes
should not be shown until the voting period is over.

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 44ac24d3
......@@ -62,17 +62,21 @@ if ($yes > $active_tus / 2) {
<table>
<tr>
<?php if (!$isrunning): ?>
<th><?= __("Yes") ?></th>
<th><?= __("No") ?></th>
<th><?= __("Abstain") ?></th>
<?php endif; ?>
<th><?= __("Total") ?></th>
<th><?= __('Voted') ?></th>
<th><?= __('Participation') ?></th>
</tr>
<tr>
<?php if (!$isrunning): ?>
<td><?= $yes ?></td>
<td><?= $no ?></td>
<td><?= $abstain ?></td>
<?php endif; ?>
<td><?= $total ?></td>
<td>
<?php if ($hasvoted == 0): ?>
......
......@@ -17,8 +17,10 @@
<th><a href="?off=<?= $off ?>&amp;by=<?= $by_next ?>"><?= __("Start") ?></a></th>
<th><?= __("End") ?></th>
<th><?= __("User") ?></th>
<?php if ($type != __("Current Votes")): ?>
<th><?= __("Yes") ?></th>
<th><?= __("No") ?></th>
<?php endif; ?>
<th><?= __('Voted') ?></th>
</tr>
</thead>
......@@ -46,8 +48,10 @@
endif;
?>
</td>
<?php if ($type != __("Current Votes")): ?>
<td><?= $row['Yes'] ?></td>
<td><?= $row['No'] ?></td>
<?php endif; ?>
<td>
<?php if (tu_voted($row['ID'], uid_from_sid($_COOKIE["AURSID"]))): ?>
<span style="color: green; font-weight: bold"><?= __("Yes") ?></span>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment