mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
c349cb2fea
commit
4679e8ef5d
3 changed files with 20 additions and 0 deletions
|
@ -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") ?>" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue