diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2013-08-26 17:53:24 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2013-08-26 17:53:24 +0200 |
commit | a4a170e58e0d795098567e1aea431e49b6956de3 (patch) | |
tree | 49722d2f5a7deca6a1f1582615b5e8babd837383 /web/html/tu.php | |
parent | 2dd3d04f45f8a0e57f0c8686a12d7b95fe5bdb59 (diff) | |
download | aurweb-a4a170e58e0d795098567e1aea431e49b6956de3.tar.xz |
Move "Past Votes" navigation to "Past Votes" box
These are navigation links and do not belong to the action box.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/tu.php')
-rw-r--r-- | web/html/tu.php | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/web/html/tu.php b/web/html/tu.php index d221619..fdccdb4 100644 --- a/web/html/tu.php +++ b/web/html/tu.php @@ -107,6 +107,7 @@ if ($atype == "Trusted User" || $atype == "Developer") { $result = current_proposal_list($order); $type = __("Current Votes"); + $nextresult = 0; include("tu_list.php"); ?> @@ -114,25 +115,13 @@ if ($atype == "Trusted User" || $atype == "Developer") { $result = past_proposal_list($order, $lim); $type = __("Past Votes"); - include("tu_list.php"); - $nextresult = proposal_count(); + include("tu_list.php"); ?> <div class="box"> <p><a href="<?= get_uri('/addvote/'); ?>"><?= __("Add Proposal") ?></a></p> - - <?php if ($result): - $by = htmlentities($by, ENT_QUOTES); ?> - <?php if ($off != 0): - $back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?> - <a href='<?= get_uri('/tu/'); ?>?off=<?= $back ?>&by=<?= $by ?>'><?= __("Back") ?></a> - <?php endif; ?> - <?php if (($off + $limit) < $nextresult): - $forw = $off + $limit; ?> - <a href="<?= get_uri('/tu/'); ?>?off=<?= $forw ?>&by=<?= $by ?>"><?= __("Next") ?></a> - <?php endif; ?> - <?php endif; ?> </div> + </p> <?php $result = last_votes_list(); include("tu_last_votes_list.php"); |