fix: pass timezone attribute to all layout components

This commit is contained in:
Graham McIntire 2026-01-18 12:49:01 -06:00
parent 9d667ac162
commit 16bfd7667d
No known key found for this signature in database
17 changed files with 27 additions and 7 deletions

View file

@ -1,4 +1,4 @@
<Layouts.admin flash={@flash}>
<Layouts.admin flash={@flash} timezone={@timezone}>
<div class="space-y-6">
<div>
<h1 class="text-2xl font-bold text-zinc-900">Admin Dashboard</h1>

View file

@ -1,4 +1,4 @@
<Layouts.admin flash={@flash}>
<Layouts.admin flash={@flash} timezone={@timezone}>
<div class="space-y-6">
<div>
<h1 class="text-2xl font-bold text-zinc-900">All Organizations</h1>

View file

@ -1,4 +1,4 @@
<Layouts.admin flash={@flash}>
<Layouts.admin flash={@flash} timezone={@timezone}>
<div class="space-y-6">
<div>
<h1 class="text-2xl font-bold text-zinc-900">All Users</h1>

View file

@ -1,4 +1,4 @@
<Layouts.app flash={@flash}>
<Layouts.app flash={@flash} timezone={@timezone}>
<div class="max-w-2xl mx-auto">
<div class="mb-6">
<.link

View file

@ -3,6 +3,7 @@
current_scope={@current_scope}
current_organization={@current_organization}
active_page="agents"
timezone={@timezone}
>
<.header>
{@page_title}

View file

@ -3,6 +3,7 @@
current_scope={@current_scope}
current_organization={@current_organization}
active_page="agents"
timezone={@timezone}
>
<.header>
{@page_title}

View file

@ -3,6 +3,7 @@
current_scope={@current_scope}
current_organization={@current_organization}
active_page="alerts"
timezone={@timezone}
>
<.header>
Alerts

View file

@ -3,6 +3,7 @@
current_scope={@current_scope}
current_organization={@current_organization}
active_page="dashboard"
timezone={@timezone}
>
<.header>
Dashboard

View file

@ -3,6 +3,7 @@
current_scope={@current_scope}
current_organization={@current_organization}
active_page="devices"
timezone={@timezone}
>
<.header>
{@page_title}

View file

@ -3,6 +3,7 @@
current_scope={@current_scope}
current_organization={@current_organization}
active_page="devices"
timezone={@timezone}
>
<div class="mb-6">
<!-- Breadcrumbs -->

View file

@ -3,6 +3,7 @@
current_scope={@current_scope}
current_organization={@current_organization}
active_page="devices"
timezone={@timezone}
>
<div class="mb-6">
<!-- Header with back button -->

View file

@ -84,7 +84,7 @@ defmodule ToweropsWeb.MobileQRLive do
@impl true
def render(assigns) do
~H"""
<Layouts.app flash={@flash}>
<Layouts.app flash={@flash} timezone={@timezone}>
<div class="mx-auto max-w-4xl">
<.header>
Mobile App Login

View file

@ -1,4 +1,9 @@
<Layouts.authenticated flash={@flash} current_scope={@current_scope} current_organization={nil}>
<Layouts.authenticated
flash={@flash}
current_scope={@current_scope}
current_organization={nil}
timezone={@timezone}
>
<.header>
{@page_title}
<:actions>

View file

@ -1,4 +1,9 @@
<Layouts.authenticated flash={@flash} current_scope={@current_scope} current_organization={nil}>
<Layouts.authenticated
flash={@flash}
current_scope={@current_scope}
current_organization={nil}
timezone={@timezone}
>
<.header>
{@page_title}
<:subtitle>Create a new organization to manage your sites and devices</:subtitle>

View file

@ -3,6 +3,7 @@
current_scope={@current_scope}
current_organization={@current_organization}
active_page="sites"
timezone={@timezone}
>
<.header>
{@page_title}

View file

@ -3,6 +3,7 @@
current_scope={@current_scope}
current_organization={@current_organization}
active_page="sites"
timezone={@timezone}
>
<.header>
{@page_title}

View file

@ -260,6 +260,7 @@ defmodule ToweropsWeb.UserSettingsLive do
flash={@flash}
current_scope={@current_scope}
current_organization={@default_organization}
timezone={@timezone}
>
<div class="border-b border-gray-200 pb-5 dark:border-white/5">
<h1 class="text-3xl font-semibold tracking-tight text-gray-900 dark:text-white">