summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-10-08 14:12:07 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-10-08 14:08:06 +0200
commit14b237ac53f13bc99d1f64f2e0cc21cd30b517b0 (patch)
tree0fe3ff8435bc22263c4bcc8d00373013a5055d46 /web/template
parenteb7efe33caff4d4493168d3db138d26884a85f77 (diff)
downloadaurweb-14b237ac53f13bc99d1f64f2e0cc21cd30b517b0.tar.xz
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>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/tu_details.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/template/tu_details.php b/web/template/tu_details.php
index b53797f..be816ce 100644
--- a/web/template/tu_details.php
+++ b/web/template/tu_details.php
@@ -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; ?>