From c0db5d0ef78c67d1dc0f700990931b88cd59a395 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sun, 15 Dec 2024 00:28:39 +0400 Subject: [PATCH] Fixed tags block not being hidden on encountering error --- lib/philomena_web/templates/image/_tags.html.slime | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/templates/image/_tags.html.slime b/lib/philomena_web/templates/image/_tags.html.slime index c4efb08a..57afdc21 100644 --- a/lib/philomena_web/templates/image/_tags.html.slime +++ b/lib/philomena_web/templates/image/_tags.html.slime @@ -1,4 +1,5 @@ - form_class = if @changeset.action, do: "", else: "hidden" +- tags_class = if @changeset.action, do: "hidden", else: "" - tags = display_order(@image.tags) - tag_input = Enum.map_join(tags, ", ", & &1.name) @@ -16,7 +17,7 @@ = if @changeset.action do .alert.alert-danger p Oops, something went wrong! Please check the errors below. - + = hidden_input f, :old_tag_input, value: tag_input .field @@ -56,7 +57,7 @@ p ' You can't edit the tags on this image. - .block.tagsauce + .block.tagsauce class=tags_class .block__header.flex span.block__header__title i.fas.fa-tag>