mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 06:57:59 +01:00
fix: requested changes
This commit is contained in:
parent
9ec25a05ec
commit
9956ce2cb6
1 changed files with 3 additions and 3 deletions
|
@ -60,14 +60,14 @@ defmodule PhilomenaWeb.Image.TagChangeController do
|
||||||
|
|
||||||
defp log_details(conn, _action, %{image: image, details: details}) do
|
defp log_details(conn, _action, %{image: image, details: details}) do
|
||||||
%{
|
%{
|
||||||
body: "Deleted tag change (#{details}) from history",
|
body: "Deleted tag change #{details} on >>#{image.id} from history",
|
||||||
subject_path: Routes.image_path(conn, :show, image)
|
subject_path: Routes.image_path(conn, :show, image)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp tag_change_details(%TagChange{added: true, tag: tag}),
|
defp tag_change_details(%TagChange{added: true, tag: tag}),
|
||||||
do: "added tag \"#{tag.name}\""
|
do: "+#{tag.name}"
|
||||||
|
|
||||||
defp tag_change_details(%TagChange{added: false, tag: tag}),
|
defp tag_change_details(%TagChange{added: false, tag: tag}),
|
||||||
do: "removed tag \"#{tag.name}\""
|
do: "-#{tag.name}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue