diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-17 21:10:04 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-17 22:22:09 +0200 |
commit | 4679e8ef5d2f998abe5b29fe8c1af9d6b3143b6a (patch) | |
tree | 2aaea2ce9c0e7f4ad5fa3c56aa55c184bac67961 /web/template/actions_form.php | |
parent | c349cb2feafa1c2009e8f41c039edc661ef6e0be (diff) | |
download | aur-4679e8ef5d2f998abe5b29fe8c1af9d6b3143b6a.tar.gz aur-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.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/template/actions_form.php b/web/template/actions_form.php index 045022d8..c58b3ecf 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") ?>" /> |