mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Show participation in vote details
This is calculated by dividing the sum of all votes by the total number of TUs (where the number of TUs is measured when the vote starts). Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
9ff082be25
commit
86fa42f399
1 changed files with 6 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
|||
<th><?= __("Abstain") ?></th>
|
||||
<th><?= __("Total") ?></th>
|
||||
<th><?= __('Voted') ?></th>
|
||||
<th><?= __('Participation') ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= $row['Yes'] ?></td>
|
||||
|
@ -47,6 +48,11 @@
|
|||
<span style="color: green; font-weight: bold"><?= __("Yes") ?></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php if ($row['ActiveTUs'] > 0): ?>
|
||||
<td><?= number_format(($row['Yes'] + $row['No'] + $row['Abstain']) / $row['ActiveTUs'] * 100, 2) ?>%</td>
|
||||
<?php else: ?>
|
||||
<td><?= __("unknown") ?></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue