Show post authors and action buttons

This commit is contained in:
Micha
2026-01-11 01:54:45 +01:00
parent c8d2bd508e
commit bbbf8eb6c1
5 changed files with 62 additions and 7 deletions

View File

@@ -125,10 +125,29 @@ export default function ThreadView() {
</aside>
<div className="bb-post-content">
<div className="bb-post-header">
<span>{t('thread.by')} {authorName}</span>
{post.created_at && (
<span>{post.created_at.slice(0, 10)}</span>
)}
<div className="bb-post-header-meta">
<span>{t('thread.by')} {authorName}</span>
{post.created_at && (
<span>{post.created_at.slice(0, 10)}</span>
)}
</div>
<div className="bb-post-actions">
<button type="button" className="bb-post-action" aria-label="Edit post">
<i className="bi bi-pencil" aria-hidden="true" />
</button>
<button type="button" className="bb-post-action" aria-label="Delete post">
<i className="bi bi-x-lg" aria-hidden="true" />
</button>
<button type="button" className="bb-post-action" aria-label="Report post">
<i className="bi bi-exclamation-lg" aria-hidden="true" />
</button>
<button type="button" className="bb-post-action" aria-label="Post info">
<i className="bi bi-info-lg" aria-hidden="true" />
</button>
<button type="button" className="bb-post-action" aria-label="Quote post">
<i className="bi bi-quote" aria-hidden="true" />
</button>
</div>
</div>
<div className="bb-post-body">{post.body}</div>
</div>