summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2016-01-23 00:15:33 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2016-01-24 21:34:54 +0100
commitb3a6809bada24c35dad7772b3b91685a2e24cb42 (patch)
tree3cb4021dea942f07250e2cbeb1e0203d3818a23a /web/template
parentbd85441cf66b39d887f01654913da58ef313d14c (diff)
downloadaur-b3a6809bada24c35dad7772b3b91685a2e24cb42.tar.gz
aur-b3a6809bada24c35dad7772b3b91685a2e24cb42.tar.xz
Fix duplicate ids from pinned comments
Fixed duplicate ids caused from pinned comments introduced in 7d4c0c9 (Implement capability to pin comments above others, 2015-12-12). Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/pkg_comments.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index c45e45b0..a28e41b0 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -51,7 +51,7 @@ if (!isset($count)) {
$heading .= ')</span>';
}
?>
- <h4 id="comment-<?= $row['ID'] ?>"<?php if ($is_deleted): ?> class="comment-deleted"<?php endif; ?>>
+ <h4 id="<?= isset($pinned) ? "pinned-" : "comment-" ?><?= $row['ID'] ?>"<?php if ($is_deleted): ?> class="comment-deleted"<?php endif; ?>>
<?= $heading ?>
<?php if ($is_deleted && has_credential(CRED_COMMENT_UNDELETE)): ?>
<form class="undelete-comment-form" method="post" action="<?= htmlspecialchars(get_pkgbase_uri($pkgbase_name), ENT_QUOTES); ?>">