mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
5 lines
240 B
Text
5 lines
240 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: "checkbox js-preview-anonymous"
|
|
= label f, :anonymous, label_lext
|