mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Refactor TU voters list
* Change voters_list() to return an array of voters instead of generating HTML code in the library call. * Change the template to generate HTML code for the list of voters instead of displaying the library's return value. * Use HTML lists. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
eb7efe33ca
commit
14b237ac53
2 changed files with 8 additions and 4 deletions
|
@ -54,7 +54,11 @@
|
|||
<?php if (!$isrunning): ?>
|
||||
<div class="box">
|
||||
<h2><?= __("Voters"); ?></h2>
|
||||
<?= $whovoted; ?>
|
||||
<ul>
|
||||
<?php foreach($whovoted as $voter): ?>
|
||||
<li><a href="<?= get_user_uri($voter) ?>"><?= htmlspecialchars($voter) ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue