mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
44ac24d394
commit
6ee1321211
2 changed files with 8 additions and 0 deletions
|
@ -62,17 +62,21 @@ if ($yes > $active_tus / 2) {
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
<?php if (!$isrunning): ?>
|
||||||
<th><?= __("Yes") ?></th>
|
<th><?= __("Yes") ?></th>
|
||||||
<th><?= __("No") ?></th>
|
<th><?= __("No") ?></th>
|
||||||
<th><?= __("Abstain") ?></th>
|
<th><?= __("Abstain") ?></th>
|
||||||
|
<?php endif; ?>
|
||||||
<th><?= __("Total") ?></th>
|
<th><?= __("Total") ?></th>
|
||||||
<th><?= __('Voted') ?></th>
|
<th><?= __('Voted') ?></th>
|
||||||
<th><?= __('Participation') ?></th>
|
<th><?= __('Participation') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<?php if (!$isrunning): ?>
|
||||||
<td><?= $yes ?></td>
|
<td><?= $yes ?></td>
|
||||||
<td><?= $no ?></td>
|
<td><?= $no ?></td>
|
||||||
<td><?= $abstain ?></td>
|
<td><?= $abstain ?></td>
|
||||||
|
<?php endif; ?>
|
||||||
<td><?= $total ?></td>
|
<td><?= $total ?></td>
|
||||||
<td>
|
<td>
|
||||||
<?php if ($hasvoted == 0): ?>
|
<?php if ($hasvoted == 0): ?>
|
||||||
|
|
|
@ -17,8 +17,10 @@
|
||||||
<th><a href="?off=<?= $off ?>&by=<?= $by_next ?>"><?= __("Start") ?></a></th>
|
<th><a href="?off=<?= $off ?>&by=<?= $by_next ?>"><?= __("Start") ?></a></th>
|
||||||
<th><?= __("End") ?></th>
|
<th><?= __("End") ?></th>
|
||||||
<th><?= __("User") ?></th>
|
<th><?= __("User") ?></th>
|
||||||
|
<?php if ($type != __("Current Votes")): ?>
|
||||||
<th><?= __("Yes") ?></th>
|
<th><?= __("Yes") ?></th>
|
||||||
<th><?= __("No") ?></th>
|
<th><?= __("No") ?></th>
|
||||||
|
<?php endif; ?>
|
||||||
<th><?= __('Voted') ?></th>
|
<th><?= __('Voted') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -46,8 +48,10 @@
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
<?php if ($type != __("Current Votes")): ?>
|
||||||
<td><?= $row['Yes'] ?></td>
|
<td><?= $row['Yes'] ?></td>
|
||||||
<td><?= $row['No'] ?></td>
|
<td><?= $row['No'] ?></td>
|
||||||
|
<?php endif; ?>
|
||||||
<td>
|
<td>
|
||||||
<?php if (tu_voted($row['ID'], uid_from_sid($_COOKIE["AURSID"]))): ?>
|
<?php if (tu_voted($row['ID'], uid_from_sid($_COOKIE["AURSID"]))): ?>
|
||||||
<span style="color: green; font-weight: bold"><?= __("Yes") ?></span>
|
<span style="color: green; font-weight: bold"><?= __("Yes") ?></span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue