summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-09-26 20:03:25 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-28 08:57:25 +0200
commitfb093c0dd66f3bfa1606d7a554856fb243fbd6ad (patch)
tree62286cf44bedd3ddccc3f449f615775194f6a2bc /web/template
parent752c5a6e3483b2309e4b48943adce2625a9bc716 (diff)
downloadaurweb-fb093c0dd66f3bfa1606d7a554856fb243fbd6ad.tar.xz
Deprecate actions bar when virtual URLs are used
The only buttons on the actions bar that were still used when virtual URLs are enabled were the package deletion and package merging. These now reside in separate pages, so remove the need for the actions bar when virtual URLs are enabled. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/actions_form.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/template/actions_form.php b/web/template/actions_form.php
index 650c6c6..c5abbb3 100644
--- a/web/template/actions_form.php
+++ b/web/template/actions_form.php
@@ -1,4 +1,4 @@
-<?php if (!$USE_VIRTUAL_URLS || $atype == "Trusted User" || $atype == "Developer" ): ?>
+<?php if (!$USE_VIRTUAL_URLS): ?>
<div class="box">
<form action="<?= htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
<fieldset>
@@ -6,7 +6,6 @@
<input type="hidden" name="ID" value="<?= $row['ID'] ?>" />
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
- <?php if (!$USE_VIRTUAL_URLS): ?>
<?php if (user_voted($uid, $row['ID'])): ?>
<input type="submit" class="button" name="do_UnVote" value="<?= __("UnVote") ?>" />
<?php else: ?>
@@ -25,7 +24,6 @@
($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer")): ?>
<input type="submit" class="button" name="do_UnFlag" value="<?= __("UnFlag Out-of-date") ?>" />
<?php endif; ?>
- <?php endif; ?>
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
<input type="submit" class="button" name="do_Delete" value="<?= __("Delete Packages") ?>" />