mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 15:08:00 +01:00
6 lines
231 B
Text
6 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
|