mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-04-12 07:53:39 +09:00
36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
<div class="flex flex-column align-center gap">
|
|
<% url = join_url(Current.account.join_code) %>
|
|
|
|
<label class="flex flex-column gap full-width" style="--row-gap: 0.5em">
|
|
<strong id="invite_label" class="invite-label">Share to invite more people</strong>
|
|
<span class="flex align-center gap input input--actor fill-white">
|
|
<%= image_tag "person-add.svg", aria: { hidden: "true" }, size: 20, class: "colorize--black" %>
|
|
<input type="text" class="input" id="invite_url" value="<%= url %>" aria-labelledby="invite_label" readonly>
|
|
</span>
|
|
</label>
|
|
|
|
<div class="flex align-center gap">
|
|
<%= link_to_zoom_qr_code(url) do %>
|
|
<span class="for-screen-reader">Show join link QR code</span>
|
|
<%= image_tag "qr-code.svg", aria: { hidden: "true" }, size: 20, class: "colorize--black" %>
|
|
<% end %>
|
|
|
|
<%= button_to_copy_to_clipboard(url) do %>
|
|
<span class="for-screen-reader">Copy join link</span>
|
|
<%= image_tag "copy-paste.svg", aria: { hidden: "true" }, size: 20, class: "colorize--black" %>
|
|
<% end %>
|
|
|
|
<%= web_share_session_button(url, "Link to join Campfire", "Hit this link to join me in Campfire and start chatting.") do %>
|
|
<span class="for-screen-reader">Share join link</span>
|
|
<%= image_tag "share.svg", aria: { hidden: "true" }, size: 20, class: "colorize--black" %>
|
|
<% end %>
|
|
|
|
<% if Current.user.can_administer? %>
|
|
<%= button_to account_join_code_path, class: "btn btn--regenerate" do %>
|
|
<%= image_tag "refresh.svg", aria: { hidden: "true" }, size: 20, class: "colorize--black" %>
|
|
<span class="for-screen-reader">Regenerate join link</span>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|