mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-25 04:47:59 +01:00
5 lines
231 B
Text
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
|