From f4613442114b36d32e903b5b0608b73e32bdbc3f Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 5 Apr 2014 13:25:47 +0200 Subject: Move package actions to package bases Package actions now operate on package bases instead of packages. Move all actions to the correct locations. This also fixes some issues with comment notifications. Signed-off-by: Lukas Fleischer --- web/template/pkg_comment_form.php | 4 ++-- web/template/pkg_comments.php | 7 +++---- web/template/pkg_details.php | 30 +++++++++++++++--------------- web/template/pkg_search_results.php | 4 ++-- web/template/pkgbase_details.php | 26 +++++++++++++------------- 5 files changed, 35 insertions(+), 36 deletions(-) (limited to 'web/template') diff --git a/web/template/pkg_comment_form.php b/web/template/pkg_comment_form.php index 8e74fe64..8a74dc13 100644 --- a/web/template/pkg_comment_form.php +++ b/web/template/pkg_comment_form.php @@ -1,6 +1,6 @@

-
+
- +

diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index 820ba6e2..1f47bb3e 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -2,11 +2,10 @@ $uid = uid_from_sid($SID); $base_id = pkgbase_from_pkgid($row['ID']); $count = package_comments_count($base_id); -$pkgname = $row['Name']; ?>

- +

@@ -16,7 +15,7 @@ $pkgname = $row['Name']; endif; ?>

- +
@@ -49,7 +48,7 @@ $pkgname = $row['Name']; 10 && !isset($_GET['comments'])): ?>

- +

diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index d4e4e4ed..5268d3b4 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -20,7 +20,7 @@ $updated_time = ($row["ModifiedTS"] == 0) ? $msg : gmdate("Y-m-d H:i", intval($r $submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("Y-m-d H:i", intval($row["SubmittedTS"])); $out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("Y-m-d", intval($row["OutOfDateTS"])); -$urlpath = URL_DIR . substr($row['Name'], 0, 2) . "/" . $row['Name']; +$urlpath = URL_DIR . substr($row['BaseName'], 0, 2) . "/" . $row['BaseName']; $deps = package_dependencies($row["ID"]); $requiredby = package_required($row["Name"]); @@ -35,12 +35,12 @@ $sources = package_sources($row["ID"]);

  • -
  • +
  • - +
  • @@ -48,7 +48,7 @@ $sources = package_sources($row["ID"]);
  • -
    +
    @@ -56,14 +56,14 @@ $sources = package_sources($row["ID"]);
  • -
    +
  • -
    +
    @@ -71,28 +71,28 @@ $sources = package_sources($row["ID"]);
  • -
    +
  • -
    +
  • -
  • -
  • +
  • +
  • -
    +
    @@ -100,7 +100,7 @@ $sources = package_sources($row["ID"]);
  • -
    +
    @@ -130,7 +130,7 @@ if ($SID && ($uid == $row["MaintainerUID"] || ($atype == "Developer" || $atype == "Trusted User"))): ?> -
    +
    @@ -196,9 +196,9 @@ if ($row["MaintainerUID"]): - + - + diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index 16f574af..c9da5f9a 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -28,7 +28,7 @@ if (!$result): ?>
    - + @@ -52,7 +52,7 @@ if (!$result): ?> - + diff --git a/web/template/pkgbase_details.php b/web/template/pkgbase_details.php index a77ecd39..8da23c43 100644 --- a/web/template/pkgbase_details.php +++ b/web/template/pkgbase_details.php @@ -30,12 +30,12 @@ $pkgs = pkgbase_get_pkgnames($base_id);

    • -
    • +
    • - + @@ -43,7 +43,7 @@ $pkgs = pkgbase_get_pkgnames($base_id);
    • -
      + @@ -51,14 +51,14 @@ $pkgs = pkgbase_get_pkgnames($base_id);
    • -
      +
    • -
      + @@ -66,28 +66,28 @@ $pkgs = pkgbase_get_pkgnames($base_id);
    • -
      +
    • -
      +
    • -
    • -
    • +
    • +
    • -
      + @@ -95,7 +95,7 @@ $pkgs = pkgbase_get_pkgnames($base_id);
    • -
      + @@ -113,7 +113,7 @@ if ($SID && ($uid == $row["MaintainerUID"] || ($atype == "Developer" || $atype == "Trusted User"))): ?>
    - + -- cgit v1.2.3-24-g4f1b
    ]" value="1" />]" value="1" /> "> -
    +
    @@ -175,7 +175,7 @@ if ($row["MaintainerUID"]):