diff --git a/lib/admin_web/components/layouts.ex b/lib/admin_web/components/layouts.ex index 2bcb3da96..6b3cd7a7e 100644 --- a/lib/admin_web/components/layouts.ex +++ b/lib/admin_web/components/layouts.ex @@ -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} /> diff --git a/lib/admin_web/controllers/blog_html/index.html.heex b/lib/admin_web/controllers/blog_html/index.html.heex index a0d445be1..80f50711d 100644 --- a/lib/admin_web/controllers/blog_html/index.html.heex +++ b/lib/admin_web/controllers/blog_html/index.html.heex @@ -1,4 +1,4 @@ - +