mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
752c5a6e34
commit
fb093c0dd6
1 changed files with 1 additions and 3 deletions
|
@ -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") ?>" />
|
||||
|
|
Loading…
Add table
Reference in a new issue