philomena/lib/philomena_web/templates/markdown/_anon_checkbox.html.slime

5 lines
231 B
Text

- f = assigns[:f]
- label_lext = assigns[:label] || "Anonymous"
= if @conn.assigns.current_user do
=> checkbox f, :anonymous, value: anonymous_by_default?(@conn), class: "js-preview-anonymous"
= label f, :anonymous, label_lext