Release 2025-05-19-2257
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user