mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
7 lines
265 B
Text
7 lines
265 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) %>
|
||
|
<% end %>
|