This commit is contained in:
2026-08-26 13:11:10 +02:00
parent 72a4741cac
commit 134e463a81
6 changed files with 58 additions and 19 deletions
+8 -4
View File
@@ -104,18 +104,22 @@ function renderFeed(items, showIdentity = true) {
const comment = document.createElement('div');
comment.className = 'comment';
comment.textContent = item.comment || 'No comment provided';
comment.textContent = item.comment || '';
const entryMeta = document.createElement('div');
entryMeta.className = 'entry-meta';
if (item.tags?.length) {
const tags = document.createElement('div');
tags.className = 'entry-tags';
tags.textContent = item.tags.join(' ');
article.appendChild(tags);
tags.textContent = item.tags.join(' ');
entryMeta.appendChild(tags);
}
const meta = document.createElement('div');
meta.className = 'meta';
meta.textContent = formatDate(item.created_at);
entryMeta.appendChild(meta);
if (item.is_owner && !showIdentity) {
const actions = document.createElement('div');
@@ -161,7 +165,7 @@ function renderFeed(items, showIdentity = true) {
}
article.appendChild(title);
article.appendChild(comment);
article.appendChild(meta);
article.appendChild(entryMeta);
feedEl.appendChild(article);
});
}