From 1c2cd8fe9ef555545eee7ce45d55efc99792c197 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Mon, 2 Feb 2026 10:12:37 +0100 Subject: [PATCH 1/2] fix: add language form to blog pages to remove the crash --- lib/admin_web/components/layouts.ex | 12 ++++++++++++ lib/admin_web/controllers/blog_html/index.html.heex | 2 +- lib/admin_web/controllers/blog_html/show.html.heex | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) 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 @@ - +