From 3578e77ad4e9258495eed7e786b7dc3aebcf1b63 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 6 Aug 2018 02:02:57 +0200 Subject: Allow listing all comments from a user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- web/template/account_details.php | 3 ++ web/template/account_edit_form.php | 1 + web/template/pkg_comments.php | 99 +++++++++++++++++++++++++++----------- 3 files changed, 76 insertions(+), 27 deletions(-) (limited to 'web/template') diff --git a/web/template/account_details.php b/web/template/account_details.php index 024bd9c3..fa6b528c 100644 --- a/web/template/account_details.php +++ b/web/template/account_details.php @@ -82,6 +82,9 @@
  • + +
  • + diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php index 6eff81bd..38d5274c 100644 --- a/web/template/account_edit_form.php +++ b/web/template/account_edit_form.php @@ -2,6 +2,7 @@

    ', '') ?> ', '') ?> + ', '') ?>

    diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index 3e5e5cc5..3001a342 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -1,28 +1,69 @@ -
    -

    - - - - - - - + + + +
    + +
    + +
    +

    + + + + + + + + + + + + +

    + + 1): ?> +

    + $pagestart): ?> + + + + + + + + + + + + +

    -

    +
    $row): ?> ' . htmlspecialchars($row['PackageBaseName']) . ''; + $heading = __('Commented on package %s on %s', $pkg_uri, $date_fmtd); } $is_deleted = $row['DelTS']; @@ -50,8 +91,13 @@ if (!isset($count)) { } $heading .= ')'; } + + $comment_classes = "comment-header"; + if ($is_deleted) { + $comment_classes .= " comment-deleted"; + } ?> -

    " class="comment-deleted"> +

    " class=""> @@ -59,6 +105,7 @@ if (!isset($count)) { + " /> @@ -70,6 +117,7 @@ if (!isset($count)) { + " /> @@ -79,13 +127,14 @@ if (!isset($count)) { <?= __('Edit comment') ?> - = 5)): ?> + = 5)): ?>
    - + " /> + " />
    @@ -97,6 +146,7 @@ if (!isset($count)) { + " /> @@ -114,13 +164,8 @@ if (!isset($count)) { - - 10 && !isset($_GET['comments']) && !isset($pinned)): ?> -

    - -

    - +