mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-20 06:37:59 +01:00
improve tag edit error message
This commit is contained in:
parent
dd8ecd531c
commit
9ba679f3a5
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue