Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/admin_web/components/layouts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ defmodule AdminWeb.Layouts do
"""
end

attr :flash, :map, required: true, doc: "the map of flash messages"

attr :current_scope, :map,
default: nil,
doc: "the current [scope](https://hexdocs.pm/phoenix/scopes.html)"

attr :locale_form, :map,
default: nil,
doc: "the form for locale selection"

slot :inner_block, required: true

def landing(assigns) do
~H"""
<.landing_menu {assigns} />
Expand Down
2 changes: 1 addition & 1 deletion lib/admin_web/controllers/blog_html/index.html.heex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Layouts.landing flash={@flash} current_scope={@current_scope}>
<Layouts.landing flash={@flash} current_scope={@current_scope} locale_form={@locale_form}>
<div class="flex flex-row max-w-screen-lg m-auto p-4 mt-6 gap-8">
<nav class="flex-col gap-4 wrap px-2 grow w-full max-w-[250px] hidden md:flex">
<h2 class="text-xl font-semibold mb-2">{gettext("Recent Posts")}</h2>
Expand Down
2 changes: 1 addition & 1 deletion lib/admin_web/controllers/blog_html/show.html.heex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Layouts.landing flash={@flash} current_scope={@current_scope}>
<Layouts.landing flash={@flash} current_scope={@current_scope} locale_form={@locale_form}>
<div class="p-8 max-w-screen-lg mx-auto gap-4 flex flex-col align-start">
<.link class="btn btn-ghost w-fit" href={~p"/blog"}>
<.icon name="hero-arrow-left" /> {gettext("Back to posts")}
Expand Down
40 changes: 20 additions & 20 deletions priv/gettext/de/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ msgstr ""
msgid "Actions"
msgstr "Aktionen"

#: lib/admin_web/components/layouts.ex:91
#: lib/admin_web/components/layouts.ex:103
#: lib/admin_web/components/layouts.ex:115
#, elixir-autogen, elixir-format
msgid "Attempting to reconnect"
msgstr "Verbindungsversuch"

#: lib/admin_web/components/layouts.ex:98
#: lib/admin_web/components/layouts.ex:110
#, elixir-autogen, elixir-format
msgid "Something went wrong!"
msgstr "Etwas ist schiefgelaufen!"

#: lib/admin_web/components/layouts.ex:86
#: lib/admin_web/components/layouts.ex:98
#, elixir-autogen, elixir-format
msgid "We can't find the internet"
msgstr "Wir können das Internet nicht finden."
Expand Down Expand Up @@ -59,44 +59,44 @@ msgstr ""
msgid "Recent Posts"
msgstr ""

#: lib/admin_web/components/layouts.ex:307
#: lib/admin_web/components/layouts.ex:337
#: lib/admin_web/components/layouts.ex:319
#: lib/admin_web/components/layouts.ex:349
#, elixir-autogen, elixir-format
msgid "Admin"
msgstr ""

#: lib/admin_web/components/layouts.ex:298
#: lib/admin_web/components/layouts.ex:332
#: lib/admin_web/components/layouts.ex:310
#: lib/admin_web/components/layouts.ex:344
#, elixir-autogen, elixir-format
msgid "Blog"
msgstr ""

#: lib/admin_web/components/layouts.ex:314
#: lib/admin_web/components/layouts.ex:346
#: lib/admin_web/components/layouts.ex:326
#: lib/admin_web/components/layouts.ex:358
#, elixir-autogen, elixir-format
msgid "Get started"
msgstr "Jetzt starten"

#: lib/admin_web/components/layouts.ex:295
#: lib/admin_web/components/layouts.ex:331
#: lib/admin_web/components/layouts.ex:307
#: lib/admin_web/components/layouts.ex:343
#, elixir-autogen, elixir-format
msgid "Library"
msgstr ""

#: lib/admin_web/components/layouts.ex:318
#: lib/admin_web/components/layouts.ex:350
#: lib/admin_web/components/layouts.ex:330
#: lib/admin_web/components/layouts.ex:362
#, elixir-autogen, elixir-format
msgid "Log in"
msgstr "Einloggen"

#: lib/admin_web/components/layouts.ex:301
#: lib/admin_web/components/layouts.ex:333
#: lib/admin_web/components/layouts.ex:313
#: lib/admin_web/components/layouts.ex:345
#, elixir-autogen, elixir-format
msgid "About"
msgstr "Über uns"

#: lib/admin_web/components/layouts.ex:304
#: lib/admin_web/components/layouts.ex:334
#: lib/admin_web/components/layouts.ex:316
#: lib/admin_web/components/layouts.ex:346
#, elixir-autogen, elixir-format
msgid "Contact"
msgstr "Kontakt"
Expand Down Expand Up @@ -141,17 +141,17 @@ msgstr ""
msgid "Home"
msgstr ""

#: lib/admin_web/components/layouts.ex:142
#: lib/admin_web/components/layouts.ex:154
#, elixir-autogen, elixir-format
msgid "Use dark theme"
msgstr ""

#: lib/admin_web/components/layouts.ex:133
#: lib/admin_web/components/layouts.ex:145
#, elixir-autogen, elixir-format
msgid "Use light theme"
msgstr ""

#: lib/admin_web/components/layouts.ex:124
#: lib/admin_web/components/layouts.ex:136
#, elixir-autogen, elixir-format
msgid "Use system theme"
msgstr ""
40 changes: 20 additions & 20 deletions priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ msgstr ""
msgid "Actions"
msgstr ""

#: lib/admin_web/components/layouts.ex:91
#: lib/admin_web/components/layouts.ex:103
#: lib/admin_web/components/layouts.ex:115
#, elixir-autogen, elixir-format
msgid "Attempting to reconnect"
msgstr ""

#: lib/admin_web/components/layouts.ex:98
#: lib/admin_web/components/layouts.ex:110
#, elixir-autogen, elixir-format
msgid "Something went wrong!"
msgstr ""

#: lib/admin_web/components/layouts.ex:86
#: lib/admin_web/components/layouts.ex:98
#, elixir-autogen, elixir-format
msgid "We can't find the internet"
msgstr ""
Expand Down Expand Up @@ -59,44 +59,44 @@ msgstr ""
msgid "Recent Posts"
msgstr ""

#: lib/admin_web/components/layouts.ex:307
#: lib/admin_web/components/layouts.ex:337
#: lib/admin_web/components/layouts.ex:319
#: lib/admin_web/components/layouts.ex:349
#, elixir-autogen, elixir-format
msgid "Admin"
msgstr ""

#: lib/admin_web/components/layouts.ex:298
#: lib/admin_web/components/layouts.ex:332
#: lib/admin_web/components/layouts.ex:310
#: lib/admin_web/components/layouts.ex:344
#, elixir-autogen, elixir-format
msgid "Blog"
msgstr ""

#: lib/admin_web/components/layouts.ex:314
#: lib/admin_web/components/layouts.ex:346
#: lib/admin_web/components/layouts.ex:326
#: lib/admin_web/components/layouts.ex:358
#, elixir-autogen, elixir-format
msgid "Get started"
msgstr ""

#: lib/admin_web/components/layouts.ex:295
#: lib/admin_web/components/layouts.ex:331
#: lib/admin_web/components/layouts.ex:307
#: lib/admin_web/components/layouts.ex:343
#, elixir-autogen, elixir-format
msgid "Library"
msgstr ""

#: lib/admin_web/components/layouts.ex:318
#: lib/admin_web/components/layouts.ex:350
#: lib/admin_web/components/layouts.ex:330
#: lib/admin_web/components/layouts.ex:362
#, elixir-autogen, elixir-format
msgid "Log in"
msgstr ""

#: lib/admin_web/components/layouts.ex:301
#: lib/admin_web/components/layouts.ex:333
#: lib/admin_web/components/layouts.ex:313
#: lib/admin_web/components/layouts.ex:345
#, elixir-autogen, elixir-format
msgid "About"
msgstr ""

#: lib/admin_web/components/layouts.ex:304
#: lib/admin_web/components/layouts.ex:334
#: lib/admin_web/components/layouts.ex:316
#: lib/admin_web/components/layouts.ex:346
#, elixir-autogen, elixir-format
msgid "Contact"
msgstr ""
Expand Down Expand Up @@ -141,17 +141,17 @@ msgstr ""
msgid "Home"
msgstr ""

#: lib/admin_web/components/layouts.ex:142
#: lib/admin_web/components/layouts.ex:154
#, elixir-autogen, elixir-format
msgid "Use dark theme"
msgstr ""

#: lib/admin_web/components/layouts.ex:133
#: lib/admin_web/components/layouts.ex:145
#, elixir-autogen, elixir-format
msgid "Use light theme"
msgstr ""

#: lib/admin_web/components/layouts.ex:124
#: lib/admin_web/components/layouts.ex:136
#, elixir-autogen, elixir-format
msgid "Use system theme"
msgstr ""
40 changes: 20 additions & 20 deletions priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ msgstr ""
msgid "Actions"
msgstr "Actions"

#: lib/admin_web/components/layouts.ex:91
#: lib/admin_web/components/layouts.ex:103
#: lib/admin_web/components/layouts.ex:115
#, elixir-autogen, elixir-format
msgid "Attempting to reconnect"
msgstr "Attempting to reconnect"

#: lib/admin_web/components/layouts.ex:98
#: lib/admin_web/components/layouts.ex:110
#, elixir-autogen, elixir-format
msgid "Something went wrong!"
msgstr "Something went wrong!"

#: lib/admin_web/components/layouts.ex:86
#: lib/admin_web/components/layouts.ex:98
#, elixir-autogen, elixir-format
msgid "We can't find the internet"
msgstr "We can't find the internet"
Expand Down Expand Up @@ -59,44 +59,44 @@ msgstr "Read more"
msgid "Recent Posts"
msgstr "Recent Posts"

#: lib/admin_web/components/layouts.ex:307
#: lib/admin_web/components/layouts.ex:337
#: lib/admin_web/components/layouts.ex:319
#: lib/admin_web/components/layouts.ex:349
#, elixir-autogen, elixir-format
msgid "Admin"
msgstr "Admin"

#: lib/admin_web/components/layouts.ex:298
#: lib/admin_web/components/layouts.ex:332
#: lib/admin_web/components/layouts.ex:310
#: lib/admin_web/components/layouts.ex:344
#, elixir-autogen, elixir-format
msgid "Blog"
msgstr "Blog"

#: lib/admin_web/components/layouts.ex:314
#: lib/admin_web/components/layouts.ex:346
#: lib/admin_web/components/layouts.ex:326
#: lib/admin_web/components/layouts.ex:358
#, elixir-autogen, elixir-format
msgid "Get started"
msgstr "Get started"

#: lib/admin_web/components/layouts.ex:295
#: lib/admin_web/components/layouts.ex:331
#: lib/admin_web/components/layouts.ex:307
#: lib/admin_web/components/layouts.ex:343
#, elixir-autogen, elixir-format
msgid "Library"
msgstr "Library"

#: lib/admin_web/components/layouts.ex:318
#: lib/admin_web/components/layouts.ex:350
#: lib/admin_web/components/layouts.ex:330
#: lib/admin_web/components/layouts.ex:362
#, elixir-autogen, elixir-format
msgid "Log in"
msgstr "Log in"

#: lib/admin_web/components/layouts.ex:301
#: lib/admin_web/components/layouts.ex:333
#: lib/admin_web/components/layouts.ex:313
#: lib/admin_web/components/layouts.ex:345
#, elixir-autogen, elixir-format
msgid "About"
msgstr "About"

#: lib/admin_web/components/layouts.ex:304
#: lib/admin_web/components/layouts.ex:334
#: lib/admin_web/components/layouts.ex:316
#: lib/admin_web/components/layouts.ex:346
#, elixir-autogen, elixir-format
msgid "Contact"
msgstr "Contact"
Expand Down Expand Up @@ -141,17 +141,17 @@ msgstr "Graasp is a platform for collaborative learning and teaching."
msgid "Home"
msgstr "Home"

#: lib/admin_web/components/layouts.ex:142
#: lib/admin_web/components/layouts.ex:154
#, elixir-autogen, elixir-format
msgid "Use dark theme"
msgstr "Use dark theme"

#: lib/admin_web/components/layouts.ex:133
#: lib/admin_web/components/layouts.ex:145
#, elixir-autogen, elixir-format
msgid "Use light theme"
msgstr "Use light theme"

#: lib/admin_web/components/layouts.ex:124
#: lib/admin_web/components/layouts.ex:136
#, elixir-autogen, elixir-format
msgid "Use system theme"
msgstr "Use system theme"
Loading
Loading