mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
2dd3d04f45
commit
a4a170e58e
2 changed files with 17 additions and 14 deletions
|
@ -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");
|
||||
|
|
|
@ -53,4 +53,18 @@
|
|||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="pkglist-stats">
|
||||
<p class="pkglist-nav">
|
||||
<?php if ($result):
|
||||
$by = htmlentities($by, ENT_QUOTES); ?>
|
||||
<?php if ($nextresult > 0 && $off != 0):
|
||||
$back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
|
||||
<a class="page" href='<?= get_uri('/tu/'); ?>?off=<?= $back ?>&by=<?= $by ?>'>‹ <?= __("Back") ?></a>
|
||||
<?php endif; ?>
|
||||
<?php if (($off + $limit) < $nextresult):
|
||||
$forw = $off + $limit; ?>
|
||||
<a class="page" href="<?= get_uri('/tu/'); ?>?off=<?= $forw ?>&by=<?= $by ?>"><?= __("Next") ?> ›</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue