diff options
author | Paul Mattal <paul@mattal.com> | 2007-10-03 08:14:03 -0400 |
---|---|---|
committer | Paul Mattal <paul@mattal.com> | 2007-10-03 08:14:03 -0400 |
commit | 8aec7ba941c26c8795eba71ac4bc3af9bd717d68 (patch) | |
tree | e7c81c4de1c38804ec400e6ebae1a783f95dd66c /web/lib/pkgfuncs.inc | |
parent | 8933e244ea4ff0715ed102132871f6c2e619961d (diff) | |
download | aurweb-8aec7ba941c26c8795eba71ac4bc3af9bd717d68.tar.xz |
Move AddComment button to top of Comments table, from Sergej
This moves the AddComment button to the top of the Comments table. A previous
patch had placed it into the action bar, but this seems cleaner.
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-rw-r--r-- | web/lib/pkgfuncs.inc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index e2217f6..f8d7236 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -536,6 +536,15 @@ function package_details($id=0, $SID="") { echo " <div class=\"pgboxtitle\"><span class=\"f3\">".__("Comments")."</span></div>\n"; echo " <div class=\"pgboxbody-comment\">\n"; echo " <table width='100%'>\n"; + echo " <tr>\n"; + echo " <td colspan='2'>\n"; + echo " <form action='/pkgedit.php' method='post'>\n"; + echo " <input type='hidden' name='ID' value='".$row["ID"]."'>\n"; + echo " <input type='submit' class='button' name='add_Comment' value=\""; + echo __("Add Comment")."\">\n"; + echo " </form>\n"; + echo " </td>\n"; + echo " </tr>\n"; $comments = package_comments($row["ID"]); if (!empty($comments)) { while (list($indx, $carr) = each($comments)) { @@ -576,15 +585,6 @@ function package_details($id=0, $SID="") { } } - echo " <tr>\n"; - echo " <td colspan='2'>\n"; - echo " <form action='/pkgedit.php' method='post'>\n"; - echo " <input type='hidden' name='ID' value='".$row["ID"]."'>\n"; - echo " <input type='submit' class='button' name='add_Comment' value=\""; - echo __("Add Comment")."\">\n"; - echo " </form>\n"; - echo " </td>\n"; - echo " </tr>\n"; echo " </table>\n"; echo " </div>\n"; echo "</div>\n"; |