eyecandy
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user