@@ -358,7 +358,7 @@ function renderMoreEvents() {
|
||||
<div class="doc-links-inline" id="docLinks-${e.id}">${renderInlineDocLinks(e.description || '')}</div>
|
||||
<div class="attachments-list" id="attachments-${e.id}" data-event-id="${e.id}"></div>
|
||||
<div class="mt-1" id="comments-${e.id}">
|
||||
<div class="d-flex align-items-center mb-1"><small class="text-secondary fw-bold" style="font-size:.7rem;"><i class="fas fa-comment-dots me-1"></i>Comments ${e.comments && e.comments.length ? '(' + e.comments.length + ')' : ''}</small></div>
|
||||
${(e.comments && e.comments.length) ? `<div class="d-flex align-items-center mb-1"><small class="text-secondary fw-bold" style="font-size:.7rem;"><i class="fas fa-comment-dots me-1"></i>Comments (${e.comments.length})</small></div>` : ''}
|
||||
<div class="comment-log">${renderComments(e)}</div>
|
||||
<div class="input-group input-group-sm comment-input-group mt-1">
|
||||
<input type="text" class="form-control form-control-sm comment-input" placeholder="Write a comment..." onkeydown="if(event.key===\'Enter\') addComment(${e.id}, this)">
|
||||
@@ -519,7 +519,7 @@ async function saveLinkDocs() {
|
||||
}
|
||||
|
||||
function renderComments(event) {
|
||||
if (!event.comments || !event.comments.length) return '<div class="text-secondary small py-1"><i class="fas fa-comment me-1"></i>No comments yet</div>';
|
||||
if (!event.comments || !event.comments.length) return '';
|
||||
return event.comments.map(c => `
|
||||
<div class="comment-box d-flex">
|
||||
<div class="me-2 text-secondary" style="font-size:.7rem;"><i class="fas fa-user-circle"></i></div>
|
||||
|
||||
Reference in New Issue
Block a user