Show timezone settings in maintenance page
This commit is contained in:
@@ -24,6 +24,27 @@ defmodule MusicLibraryWeb.MaintenanceLive.Index do
|
|||||||
toasts_sync={assigns[:toasts_sync]}
|
toasts_sync={assigns[:toasts_sync]}
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
|
<h3 class="mt-2 text-base font-semibold text-zinc-900 dark:text-zinc-200">
|
||||||
|
{gettext("Settings")}
|
||||||
|
</h3>
|
||||||
|
<dl>
|
||||||
|
<div class="flex gap-2 mt-2">
|
||||||
|
<dt class="text-xs/6 font-medium text-zinc-900 md:text-sm dark:text-zinc-400">
|
||||||
|
{gettext("Current timezone")}
|
||||||
|
</dt>
|
||||||
|
<dd class="mt-1 text-xs/6 text-zinc-700 sm:col-span-2 sm:mt-0 md:text-sm dark:text-zinc-300">
|
||||||
|
{@timezone}
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<div class="flex gap-2 mt-2">
|
||||||
|
<dt class="text-xs/6 font-medium text-zinc-900 md:text-sm dark:text-zinc-400">
|
||||||
|
{gettext("Default timezone")}
|
||||||
|
</dt>
|
||||||
|
<dd class="mt-1 text-xs/6 text-zinc-700 sm:col-span-2 sm:mt-0 md:text-sm dark:text-zinc-300">
|
||||||
|
{@default_timezone}
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
</dl>
|
||||||
<h3 class="mt-2 text-base font-semibold text-zinc-900 dark:text-zinc-200">
|
<h3 class="mt-2 text-base font-semibold text-zinc-900 dark:text-zinc-200">
|
||||||
{gettext("Records")}
|
{gettext("Records")}
|
||||||
</h3>
|
</h3>
|
||||||
@@ -274,7 +295,8 @@ defmodule MusicLibraryWeb.MaintenanceLive.Index do
|
|||||||
socket
|
socket
|
||||||
|> assign(
|
|> assign(
|
||||||
page_title: gettext("Maintenance"),
|
page_title: gettext("Maintenance"),
|
||||||
current_section: :maintenance
|
current_section: :maintenance,
|
||||||
|
default_timezone: MusicLibrary.default_timezone()
|
||||||
)
|
)
|
||||||
|> assign_job_counts()
|
|> assign_job_counts()
|
||||||
|> assign_async(:lastfm_status, fn ->
|
|> assign_async(:lastfm_status, fn ->
|
||||||
|
|||||||
@@ -2576,3 +2576,18 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Failed to delete: "
|
msgid "Failed to delete: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/maintenance_live/index.ex
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Current timezone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/maintenance_live/index.ex
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Default timezone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/maintenance_live/index.ex
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Settings"
|
||||||
|
msgstr ""
|
||||||
|
|||||||
@@ -2576,3 +2576,18 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Failed to delete: "
|
msgid "Failed to delete: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/maintenance_live/index.ex
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Current timezone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/maintenance_live/index.ex
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Default timezone"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/maintenance_live/index.ex
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Settings"
|
||||||
|
msgstr ""
|
||||||
|
|||||||
Reference in New Issue
Block a user