fix: add navigation and footer to changelog page

Wrapped ChangelogLive content in Layouts.authenticated component
to include standard navigation header and footer.
This commit is contained in:
Graham McIntire 2026-03-09 15:59:13 -05:00
parent 3c0157d2ea
commit 108fb2b7dc
No known key found for this signature in database

View file

@ -11,28 +11,30 @@ defmodule ToweropsWeb.ChangelogLive do
@impl true
def render(assigns) do
~H"""
<div class="mx-auto max-w-3xl px-4 py-8">
<h1 class="text-3xl font-bold mb-2">What's New</h1>
<p class="text-base-content/60 mb-8">Latest updates and improvements to TowerOps.</p>
<Layouts.authenticated flash={@flash} current_scope={@current_scope} active_page="changelog">
<div class="mx-auto max-w-3xl px-4 py-8">
<h1 class="text-3xl font-bold mb-2">What's New</h1>
<p class="text-base-content/60 mb-8">Latest updates and improvements to TowerOps.</p>
<div class="space-y-8">
<div :for={entry <- @entries} class="relative pl-8 border-l-2 border-primary/20">
<div class="absolute -left-[9px] top-1 w-4 h-4 rounded-full bg-primary border-2 border-base-100" />
<div class="mb-1">
<span class="badge badge-ghost badge-sm font-mono">
{Calendar.strftime(entry.date, "%b %d, %Y")}
</span>
<div class="space-y-8">
<div :for={entry <- @entries} class="relative pl-8 border-l-2 border-primary/20">
<div class="absolute -left-[9px] top-1 w-4 h-4 rounded-full bg-primary border-2 border-base-100" />
<div class="mb-1">
<span class="badge badge-ghost badge-sm font-mono">
{Calendar.strftime(entry.date, "%b %d, %Y")}
</span>
</div>
<h2 :if={entry.title} class="text-lg font-semibold mb-2">{entry.title}</h2>
<ul
:if={entry.items != []}
class="list-disc list-inside space-y-1 text-base-content/80 text-sm"
>
<li :for={item <- entry.items}>{item}</li>
</ul>
</div>
<h2 :if={entry.title} class="text-lg font-semibold mb-2">{entry.title}</h2>
<ul
:if={entry.items != []}
class="list-disc list-inside space-y-1 text-base-content/80 text-sm"
>
<li :for={item <- entry.items}>{item}</li>
</ul>
</div>
</div>
</div>
</Layouts.authenticated>
"""
end
end