Release 2025-05-19-2257

This commit is contained in:
pluja
2025-05-19 11:37:36 +00:00
parent 22579d10c5
commit 60912def4e

View File

@@ -239,7 +239,7 @@ function makeReplySchema(comment: CommentWithRepliesPopulated): Comment {
])} ])}
/> />
</div> </div>
<span>Show unmoderated ({pendingCommentsCount})</span> <span>Show unmoderated ({pendingCommentsCount.toLocaleString()})</span>
</a> </a>
</div> </div>
) )
@@ -249,15 +249,31 @@ function makeReplySchema(comment: CommentWithRepliesPopulated): Comment {
<div class="space-y-4"> <div class="space-y-4">
{ {
comments.map((comment) => ( comments.length > 0 ? (
<CommentItem comments.map((comment) => (
comment={comment} <CommentItem
highlightedCommentId={params.comment} comment={comment}
showPending={params.showPending} highlightedCommentId={params.comment}
serviceSlug={service.slug} showPending={params.showPending}
itemReviewedId={itemReviewedId} serviceSlug={service.slug}
/> itemReviewedId={itemReviewedId}
)) />
))
) : (
<div class="text-day-400 my-16 text-center">
{pendingCommentsCount > 0 ? (
<span>
No approved comments, but there are
<a href={toggleUrl.toString()} class="inline-flex items-center gap-1">
<span class="underline">{pendingCommentsCount.toLocaleString()} unmoderated comments</span>
<Icon name="ri:external-link-line" class="inline size-3.5 align-[-0.1em]" />
</a>
</span>
) : (
'No comments yet'
)}
</div>
)
} }
</div> </div>
</section> </section>