summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-02-27 20:01:50 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-02-27 20:01:50 +0100
commit92f140c5ca121bcde0bb3cb283075e151f865d0d (patch)
treebef0377b5dd76367f175f1bde42cb9fa10a8cd6a
parent483c8f5178c6d0f093a56aecc760cefba03352d9 (diff)
downloadaur-92f140c5ca121bcde0bb3cb283075e151f865d0d.tar.gz
aur-92f140c5ca121bcde0bb3cb283075e151f865d0d.tar.xz
flag_comment.php: Hide comment for unflagged packages
Only show the comment paragraph if the package base is actually flagged out-of-date. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/template/flag_comment.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/template/flag_comment.php b/web/template/flag_comment.php
index e8855fe8..05eeacb2 100644
--- a/web/template/flag_comment.php
+++ b/web/template/flag_comment.php
@@ -11,11 +11,13 @@
'<strong>', htmlspecialchars($pkgbase_name), '</strong>'); ?>
<?php endif; ?>
</p>
+ <?php if (isset($message['Username'])): ?>
<p>
<div class="article-content">
<blockquote><p><?= parse_comment($message['FlaggerComment']) ?></p></blockquote>
</div>
</p>
+ <?php endif; ?>
<p>
<form action="<?= htmlspecialchars(get_pkgbase_uri($pkgbase_name), ENT_QUOTES) ?>">
<input type="submit" value="<?= __("Return to Details") ?>" />