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:
Lukas Fleischer 2013-08-26 17:53:24 +02:00
parent 2dd3d04f45
commit a4a170e58e
2 changed files with 17 additions and 14 deletions

View file

@ -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 ?>&amp;by=<?= $by ?>'>&lsaquo; <?= __("Back") ?></a>
<?php endif; ?>
<?php if (($off + $limit) < $nextresult):
$forw = $off + $limit; ?>
<a class="page" href="<?= get_uri('/tu/'); ?>?off=<?= $forw ?>&amp;by=<?= $by ?>"><?= __("Next") ?> &rsaquo;</a>
<?php endif; ?>
<?php endif; ?>
</div>
</div>