Commit fb093c0d authored by canyonknight's avatar canyonknight Committed by Lukas Fleischer
Browse files

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: default avatarcanyonknight <canyonknight@gmail.com>
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 752c5a6e
<?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 @@ ...@@ -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 @@ ...@@ -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") ?>" />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment