Files
once-campfire/app/views/rooms/directs/edit.html.erb
Kevin McConnell df76a227dc Hello world
First open source release of Campfire 🎉
2025-08-21 09:31:59 +01:00

29 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<% @page_title = "Edit settings for #{room_display_name(@room)}" %>
<% content_for :nav do %>
<div class="flex-item-justify-start">
<%= link_back_to_last_room_visited %>
</div>
<% end %>
<div class="panel txt-align-center">
<section class="directs--edit margin-block-end">
<% users = @room.users.many? ? @room.users.without(Current.user) : @room.users %>
<% users.each do | user | %>
<div class="member flex flex-column gap fill-shade pad border-radius">
<figure class="avatar center" style="--avatar-border-radius: 10ch; --avatar-size: 10ch;" >
<%= avatar_tag user, loading: :lazy %>
</figure>
<strong><%= user.name %></strong>
</div>
<% end %>
</section>
<%= button_to rooms_direct_url(@room), method: :delete, class: "btn btn--negative center", aria: { label: "Delete Ping" },
data: { turbo_confirm: "Are you sure you want to delete this ping and all messages in it? This cant be undone." } do %>
<%= image_tag "trash.svg", aria: { hidden: "true" } %>
Ping
<% end %>
</div>