Message ID | 20170227191335.27475-2-lfleischer@archlinux.org |
---|---|
State | Accepted, archived |
Headers | show |
Series | [1/3] Remove bogus if-statement from pkgbase_delete() | expand |
diff --git a/web/template/flag_comment.php b/web/template/flag_comment.php index e8855fe..05eeacb 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") ?>" />
Only show the comment paragraph if the package base is actually flagged out-of-date. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org> --- web/template/flag_comment.php | 2 ++ 1 file changed, 2 insertions(+)