summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2013-09-03 12:53:02 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2013-09-03 12:53:58 +0200
commit3130a887e899a34ee826d5c2daf1bfbe1ba93351 (patch)
tree28374cc71271da9649933849dd26cb878ac9e8d9 /web/template
parent40fd73b66850d6706dc1a208362af8a5704573ff (diff)
downloadaur-3130a887e899a34ee826d5c2daf1bfbe1ba93351.tar.gz
aur-3130a887e899a34ee826d5c2daf1bfbe1ba93351.tar.xz
Move "Add Proposal" link to "Current Votes"
The page this links to allows for adding an item to the list of current votes. Move the link accordingly. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/tu_list.php7
1 files changed, 7 insertions, 0 deletions
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>