summaryrefslogtreecommitdiffstats
path: root/web/template/actions_form.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 21:10:04 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 22:22:09 +0200
commit4679e8ef5d2f998abe5b29fe8c1af9d6b3143b6a (patch)
tree2aaea2ce9c0e7f4ad5fa3c56aa55c184bac67961 /web/template/actions_form.php
parentc349cb2feafa1c2009e8f41c039edc661ef6e0be (diff)
downloadaurweb-4679e8ef5d2f998abe5b29fe8c1af9d6b3143b6a.tar.xz
Move package actions to the action box
Note that this currently only works if the virtual path feature is enabled. If you don't use virtual paths, these will still be displayed as buttons below the package details listing. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/actions_form.php')
-rw-r--r--web/template/actions_form.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/template/actions_form.php b/web/template/actions_form.php
index 045022d..c58b3ec 100644
--- a/web/template/actions_form.php
+++ b/web/template/actions_form.php
@@ -5,6 +5,7 @@
<input type="hidden" name="ID" value="<?php echo $row['ID'] ?>" />
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
+ <?php if (!$USE_VIRTUAL_URLS): ?>
<?php if (user_voted($uid, $row['ID'])): ?>
<input type="submit" class="button" name="do_UnVote" value="<?php echo __("UnVote") ?>" />
<?php else: ?>
@@ -22,6 +23,7 @@
<?php else: ?>
<input type="submit" class="button" name="do_UnFlag" value="<?php echo __("UnFlag Out-of-date") ?>" />
<?php endif; ?>
+ <?php endif; ?>
<?php if ($row["MaintainerUID"] === NULL): ?>
<input type="submit" class="button" name="do_Adopt" value="<?php echo __("Adopt Packages") ?>" />