diff options
-rw-r--r-- | web/html/tu.php | 10 | ||||
-rw-r--r-- | web/template/tu_list.php | 7 |
2 files changed, 8 insertions, 9 deletions
diff --git a/web/html/tu.php b/web/html/tu.php index fdccdb47..a6aa292e 100644 --- a/web/html/tu.php +++ b/web/html/tu.php @@ -109,20 +109,12 @@ if ($atype == "Trusted User" || $atype == "Developer") { $type = __("Current Votes"); $nextresult = 0; include("tu_list.php"); -?> -<?php $result = past_proposal_list($order, $lim); - $type = __("Past Votes"); $nextresult = proposal_count(); include("tu_list.php"); -?> -<div class="box"> - <p><a href="<?= get_uri('/addvote/'); ?>"><?= __("Add Proposal") ?></a></p> -</div> - </p> -<?php + $result = last_votes_list(); include("tu_last_votes_list.php"); } diff --git a/web/template/tu_list.php b/web/template/tu_list.php index 1f7280ae..c2e2d399 100644 --- a/web/template/tu_list.php +++ b/web/template/tu_list.php @@ -1,5 +1,12 @@ <div class="box"> <h2><?= $type ?></h2> + + <?php if ($type == __("Current Votes")): ?> + <ul class="admin-actions"> + <li><a href="<?= get_uri('/addvote/'); ?>"><?= __("Add Proposal") ?></a></li> + </ul> + <?php endif; ?> + <table class="results"> <thead> <tr> |