- New admin root + child layouts with daisyUI drawer sidebar - AdminLayoutHook tracks current path for active nav highlighting - Split router into :admin, :admin_theme, :user_settings live_sessions - Theme editor stays full-screen with back link to admin - Admin bar on shop pages for logged-in users (mount_current_scope) - Strip Layouts.app wrapper from admin LiveViews - Remove nav from root.html.heex (now only serves auth pages) - 9 new layout tests covering sidebar, active state, theme editor, admin bar Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
419 B
Plaintext
14 lines
419 B
Plaintext
<div
|
|
:if={assigns[:current_scope]}
|
|
style="background-color: var(--t-surface-raised, #f5f5f5); border-bottom: 1px solid var(--t-border-default, #e5e5e5); padding: 0.25rem 1rem; font-size: 0.75rem; text-align: right;"
|
|
>
|
|
<.link
|
|
href={~p"/admin/orders"}
|
|
style="color: var(--t-text-secondary, #666); text-decoration: none;"
|
|
>
|
|
Admin
|
|
</.link>
|
|
</div>
|
|
<.shop_flash_group flash={@flash} />
|
|
{@inner_content}
|