philomena/lib/philomena_web/templates/image/_deleted_toggle.html.slime

32 lines
1.1 KiB
Text
Raw Permalink Normal View History

- del = @conn.params["del"]
= if blank?(del) do
2019-12-20 23:35:46 +01:00
a.js-staff-action href=@route.(Keyword.put(@params, :del, 1)) title="Include Deleted/Merged Images"
i.fa.fa-plus
i.fa.fa-exclamation>
span.hide-mobile.hide-limited-desktop Show Deleted
= if del != "only" do
2019-12-20 23:35:46 +01:00
a.js-staff-action href=@route.(Keyword.put(@params, :del, "only")) title="Only Deleted/Merged Images"
i.fa.fa-minus
i.fa.fa-check>
span.hide-mobile.hide-limited-desktop Only Deleted
= if del == "only" do
2019-12-20 23:35:46 +01:00
a.js-staff-action href=@route.(Keyword.put(@params, :del, 1)) title="Include Images Visible to Users"
i.fa.fa-plus
i.fa.fa-check>
span.hide-mobile.hide-limited-desktop Show Non-Deleted
= if present?(del) do
2019-12-20 23:35:46 +01:00
a.js-staff-action href=@route.(Keyword.delete(@params, :del)) title="Hide Deleted/Merged Images"
i.fa.fa-minus
i.fa.fa-exclamation>
span.hide-mobile.hide-limited-desktop Hide Deleted
2019-12-19 23:45:31 +01:00
= if present?(del) and del != "deleted" do
2019-12-20 23:35:46 +01:00
a.js-staff-action href=@route.(Keyword.put(@params, :del, "deleted")) title="Only Deleted (Strict)"
i.fa.fa-minus
i.fa.fa-object-group>
span.hide-mobile.hide-limited-desktop Exclude Merges