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

6 lines
231 B
Text
Raw Permalink Normal View History

- 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