mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Move adoption button to package actions box
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
4679e8ef5d
commit
c87ae9d299
2 changed files with 13 additions and 7 deletions
|
@ -25,13 +25,6 @@
|
|||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($row["MaintainerUID"] === NULL): ?>
|
||||
<input type="submit" class="button" name="do_Adopt" value="<?php echo __("Adopt Packages") ?>" />
|
||||
<?php elseif ($uid == $row["MaintainerUID"] ||
|
||||
$atype == "Trusted User" || $atype == "Developer"): ?>
|
||||
<input type="submit" class="button" name="do_Disown" value="<?php echo __("Disown Packages") ?>" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
|
||||
<input type="submit" class="button" name="do_Delete" value="<?php echo __("Delete Packages") ?>" />
|
||||
<label for="merge_Into" ><?php echo __("Merge into") ?></label>
|
||||
|
|
|
@ -55,6 +55,19 @@ $sources = package_sources($row["ID"]);
|
|||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
|
||||
<fieldset>
|
||||
<input type="hidden" name="IDs[<?php echo $row['ID'] ?>]" value="1" />
|
||||
<input type="hidden" name="ID" value="<?php echo $row['ID'] ?>" />
|
||||
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||
<?php if ($row["MaintainerUID"] === NULL): ?>
|
||||
<input type="submit" class="button" name="do_Adopt" value="<?php echo __("Adopt Packages") ?>" />
|
||||
<?php elseif ($uid == $row["MaintainerUID"] ||
|
||||
$atype == "Trusted User" || $atype == "Developer"): ?>
|
||||
<input type="submit" class="button" name="do_Disown" value="<?php echo __("Disown Packages") ?>" />
|
||||
<?php endif; ?>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue