summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_details.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 21:32:12 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 22:23:26 +0200
commitc87ae9d299fe48eadab05c52d7cbabd14463a5ca (patch)
tree45c7db8feb0f00ef075d6534c3cacbca935a9758 /web/template/pkg_details.php
parent4679e8ef5d2f998abe5b29fe8c1af9d6b3143b6a (diff)
downloadaurweb-c87ae9d299fe48eadab05c52d7cbabd14463a5ca.tar.xz
Move adoption button to package actions box
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_details.php')
-rw-r--r--web/template/pkg_details.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 7542ea8..2e7fc6c 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -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>