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>
This commit is contained in:
Lukas Fleischer 2017-02-27 20:01:50 +01:00
parent 483c8f5178
commit 92f140c5ca

View file

@ -11,11 +11,13 @@
'<strong>', htmlspecialchars($pkgbase_name), '</strong>'); ?> '<strong>', htmlspecialchars($pkgbase_name), '</strong>'); ?>
<?php endif; ?> <?php endif; ?>
</p> </p>
<?php if (isset($message['Username'])): ?>
<p> <p>
<div class="article-content"> <div class="article-content">
<blockquote><p><?= parse_comment($message['FlaggerComment']) ?></p></blockquote> <blockquote><p><?= parse_comment($message['FlaggerComment']) ?></p></blockquote>
</div> </div>
</p> </p>
<?php endif; ?>
<p> <p>
<form action="<?= htmlspecialchars(get_pkgbase_uri($pkgbase_name), ENT_QUOTES) ?>"> <form action="<?= htmlspecialchars(get_pkgbase_uri($pkgbase_name), ENT_QUOTES) ?>">
<input type="submit" value="<?= __("Return to Details") ?>" /> <input type="submit" value="<?= __("Return to Details") ?>" />