mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-11 11:38:01 +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
|