Format editor dashboard LiveView

This commit is contained in:
Willem van den Ende
2026-04-01 21:44:12 +00:00
parent f1560ff0e7
commit 2591796d82
2 changed files with 7 additions and 3 deletions
@@ -72,7 +72,8 @@ defmodule FirehoseWeb.EditorDashboardLive do
{post.title}
</.link>
<div class="text-sm text-zinc-500 mt-1">
{post.author} · {Calendar.strftime(post.date, "%b %d, %Y")} · <span class="text-amber-600 font-medium">Draft</span>
{post.author} · {Calendar.strftime(post.date, "%b %d, %Y")} ·
<span class="text-amber-600 font-medium">Draft</span>
</div>
</div>
</div>
@@ -91,7 +92,10 @@ defmodule FirehoseWeb.EditorDashboardLive do
{post.title}
</.link>
<div class="text-sm text-zinc-500 mt-1">
{post.author} · {Calendar.strftime(post.date, "%b %d, %Y")} · <span class="text-blue-600 font-medium">{Post.days_until_live(post)} days until live</span>
{post.author} · {Calendar.strftime(post.date, "%b %d, %Y")} ·
<span class="text-blue-600 font-medium">
{Post.days_until_live(post)} days until live
</span>
</div>
</div>
</div>