Use live navigation between sections
This commit is contained in:
@@ -3,15 +3,21 @@
|
|||||||
<div class="flex h-16 justify-between">
|
<div class="flex h-16 justify-between">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="flex space-x-8">
|
<div class="flex space-x-8">
|
||||||
<a href="/" class={section_link_classes(assigns[:nav_section], :stats)}>
|
<.link navigate={~p"/"} class={section_link_classes(assigns[:nav_section], :stats)}>
|
||||||
<%= gettext("Stats") %>
|
<%= gettext("Stats") %>
|
||||||
</a>
|
</.link>
|
||||||
<a href={~p"/records"} class={section_link_classes(assigns[:nav_section], :records)}>
|
<.link
|
||||||
|
navigate={~p"/records"}
|
||||||
|
class={section_link_classes(assigns[:nav_section], :records)}
|
||||||
|
>
|
||||||
<%= gettext("Collection") %>
|
<%= gettext("Collection") %>
|
||||||
</a>
|
</.link>
|
||||||
<a href={~p"/wishlist"} class={section_link_classes(assigns[:nav_section], :wishlist)}>
|
<.link
|
||||||
|
navigate={~p"/wishlist"}
|
||||||
|
class={section_link_classes(assigns[:nav_section], :wishlist)}
|
||||||
|
>
|
||||||
<%= gettext("Wishlist") %>
|
<%= gettext("Wishlist") %>
|
||||||
</a>
|
</.link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex space-x-8">
|
<div class="flex space-x-8">
|
||||||
|
|||||||
@@ -72,13 +72,13 @@ msgstr ""
|
|||||||
msgid "You must be logged in to access this page"
|
msgid "You must be logged in to access this page"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/components/layouts/app.html.heex:10
|
#: lib/music_library_web/components/layouts/app.html.heex:13
|
||||||
#: lib/music_library_web/live/record_live/index.ex:71
|
#: lib/music_library_web/live/record_live/index.ex:71
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Collection"
|
msgid "Collection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/components/layouts/app.html.heex:19
|
#: lib/music_library_web/components/layouts/app.html.heex:25
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Logout"
|
msgid "Logout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -294,7 +294,7 @@ msgstr ""
|
|||||||
msgid "Purchase"
|
msgid "Purchase"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/components/layouts/app.html.heex:13
|
#: lib/music_library_web/components/layouts/app.html.heex:19
|
||||||
#: lib/music_library_web/live/wishlist_live/index.ex:72
|
#: lib/music_library_web/live/wishlist_live/index.ex:72
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Wishlist"
|
msgid "Wishlist"
|
||||||
|
|||||||
Reference in New Issue
Block a user