philomena/lib/philomena_web/templates/image/_hidden_toggle.html.slime
2023-11-23 17:07:49 +01:00

9 lines
325 B
Text

= if present?(@conn.params["hidden"]) do
a href=@route.(Keyword.delete(@params, :hidden)) title="Hide Hidden Images"
i.fa.fa-eye-slash>
span.hidden--mobile Hide Hidden
- else
a href=@route.(Keyword.put(@params, :hidden, "1")) title="Show Hidden Images"
i.fa.fa-eye-slash>
span.hidden--mobile Show Hidden