<%= turbo_frame_tag @board, :publication do %>

Public link

Turn on the Public link to share this board with anyone in the world. They won’t need to log in and they won’t be able to see anything else in Fizzy.
<% if board.published? %>
<%= icon_tag "lock" %> <%= icon_tag "world" %>
<%= text_field_tag :publication_url, published_board_url(board), readonly: true, class: "full-width input fill-white" %>
<%= button_to_copy_to_clipboard(published_board_url(board)) do %> <%= icon_tag "copy-paste" %> Copy public link <% end %>
Add an optional description to the public page
<%= form_with model: board, class: "txt-align-start", data: { controller: "form", turbo_frame: "_top" } do |form| %> <%= form.rich_textarea :public_description, class: "rich-text-content txt-small", placeholder: "Add a public note about this board…", data: { action: "keydown.ctrl+enter->form#submit:prevent keydown.meta+enter->form#submit:prevent keydown.esc->form#cancel:stop" }, readonly: !Current.user.can_administer_board?(@board) %> <%= form.button "Save changes", type: :submit, class: "btn txt-small" %> <% end %>
<% else %>
<%= icon_tag "lock" %> <%= icon_tag "world" %>
<% end %> <% end %>