Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/philomena_web/controllers/image/tag_lock_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule PhilomenaWeb.Image.TagLockController do
{:ok, image} = Images.lock_tags(conn.assigns.image, true)

conn
|> put_flash(:info, "Successfully locked tags.")
|> put_flash(:info, "Successfully locked tags and sources.")
|> moderation_log(details: &log_details/2, data: image)
|> redirect(to: ~p"/images/#{image}")
end
Expand All @@ -40,7 +40,7 @@ defmodule PhilomenaWeb.Image.TagLockController do
{:ok, image} = Images.lock_tags(conn.assigns.image, false)

conn
|> put_flash(:info, "Successfully unlocked tags.")
|> put_flash(:info, "Successfully unlocked tags and sources.")
|> moderation_log(details: &log_details/2, data: image)
|> redirect(to: ~p"/images/#{image}")
end
Expand Down
4 changes: 2 additions & 2 deletions lib/philomena_web/templates/image/_options.html.slime
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@
= button_to "Unlock description editing", ~p"/images/#{@image}/description_lock", method: "delete", class: "button"

= if @image.tag_editing_allowed do
= button_to "Lock tag editing", ~p"/images/#{@image}/tag_lock", method: "post", class: "button"
= button_to "Lock tag/source editing", ~p"/images/#{@image}/tag_lock", method: "post", class: "button"
- else
= button_to "Unlock tag editing", ~p"/images/#{@image}/tag_lock", method: "delete", class: "button"
= button_to "Unlock tag/source editing", ~p"/images/#{@image}/tag_lock", method: "delete", class: "button"

br
.flex.flex--spaced-out
Expand Down
Loading