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

Public link

Turn on the Public link to share this collection 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 collection.published? %>
<%= icon_tag "lock" %> <%= icon_tag "world" %>
<%= text_field_tag :publication_url, published_collection_url(collection), readonly: true, class: "full-width input fill-white" %>
<%= button_to_copy_to_clipboard(published_collection_url(collection)) do %> <%= icon_tag "copy-paste" %> Copy public link <% end %>
Add an optional description to the public page
<%= form_with model: collection, 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 collection…", data: { action: "keydown.ctrl+enter->form#submit:prevent keydown.meta+enter->form#submit:prevent keydown.esc->form#cancel:stop" } %> <%= form.button "Save changes", type: :submit, class: "btn txt-small" %> <% end %>
<% else %>
<%= icon_tag "lock" %> <%= icon_tag "world" %>
<% end %> <% end %>