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>
This commit is contained in:
canyonknight 2012-09-26 20:03:25 -04:00 committed by Lukas Fleischer
parent 752c5a6e34
commit fb093c0dd6

View file

@ -1,4 +1,4 @@
<?php if (!$USE_VIRTUAL_URLS || $atype == "Trusted User" || $atype == "Developer" ): ?> <?php if (!$USE_VIRTUAL_URLS): ?>
<div class="box"> <div class="box">
<form action="<?= htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post"> <form action="<?= htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
<fieldset> <fieldset>
@ -6,7 +6,6 @@
<input type="hidden" name="ID" value="<?= $row['ID'] ?>" /> <input type="hidden" name="ID" value="<?= $row['ID'] ?>" />
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" /> <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
<?php if (!$USE_VIRTUAL_URLS): ?>
<?php if (user_voted($uid, $row['ID'])): ?> <?php if (user_voted($uid, $row['ID'])): ?>
<input type="submit" class="button" name="do_UnVote" value="<?= __("UnVote") ?>" /> <input type="submit" class="button" name="do_UnVote" value="<?= __("UnVote") ?>" />
<?php else: ?> <?php else: ?>
@ -25,7 +24,6 @@
($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer")): ?> ($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer")): ?>
<input type="submit" class="button" name="do_UnFlag" value="<?= __("UnFlag Out-of-date") ?>" /> <input type="submit" class="button" name="do_UnFlag" value="<?= __("UnFlag Out-of-date") ?>" />
<?php endif; ?> <?php endif; ?>
<?php endif; ?>
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?> <?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
<input type="submit" class="button" name="do_Delete" value="<?= __("Delete Packages") ?>" /> <input type="submit" class="button" name="do_Delete" value="<?= __("Delete Packages") ?>" />