From 9ba679f3a5cdc40b28dcc9efeab64b3c80406e44 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 24 Nov 2019 21:21:11 -0500 Subject: [PATCH] improve tag edit error message --- lib/philomena_web/templates/image/_tags.html.slime | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/philomena_web/templates/image/_tags.html.slime b/lib/philomena_web/templates/image/_tags.html.slime index 7677f854..cccacd66 100644 --- a/lib/philomena_web/templates/image/_tags.html.slime +++ b/lib/philomena_web/templates/image/_tags.html.slime @@ -1,9 +1,8 @@ - form_class = if @changeset.action, do: "", else: "hidden" .js-tagsauce#image_tags_and_source - = if can?(@conn, :update_metadata, @image) and !@conn.assigns.current_ban do - - .js-imageform class=form_class + .js-imageform class=form_class + = if can?(@conn, :update_metadata, @image) and !@conn.assigns.current_ban do = form_for @changeset, Routes.image_tag_path(@conn, :update, @image), [id: "tags-form", method: "put", data: [remote: true]], fn f -> = if @changeset.action do @@ -43,9 +42,9 @@ button.button.js-tag-sauce-toggle data-click-toggle=".tagsauce, .js-imageform" data-click-focus=".js-taginput-plain:not(.hidden), .js-taginput-input" ' Cancel - - else - p - ' You can't edit the tags on this image. + - else + p + ' You can't edit the tags on this image. .tagsauce .block