Signed-off-by: Lukas Fleischer <[email protected]>
---
 web/template/actions_form.php |  7 -------
 web/template/pkg_details.php  | 13 +++++++++++++
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/web/template/actions_form.php b/web/template/actions_form.php
index c58b3ec..4b3845d 100644
--- a/web/template/actions_form.php
+++ b/web/template/actions_form.php
@@ -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>
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>
 
-- 
1.7.11.2

Reply via email to