mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-04-13 20:59:57 +09:00
35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
<%= render layout: "rooms/layouts/form", locals: { room: room } do %>
|
|
<%= user_filter_menu_tag do %>
|
|
<li class="flex align-center gap margin-none">
|
|
<figure class="avatar flex-item-no-shrink" style="--avatar-border-radius: 0; --avatar-size: 4ch;">
|
|
<%= image_tag "everyone.svg", aria: { hidden: "true" }, class: "colorize--black", style: "background-color: transparent" %>
|
|
<span class="for-screen-reader">Everyone</span>
|
|
</figure>
|
|
|
|
<div class="min-width">
|
|
<div class="overflow-ellipsis fill-shade"><strong>Everyone</strong></div>
|
|
</div>
|
|
|
|
<hr class="separator" aria-hidden="true">
|
|
|
|
<% if Current.user.can_administer?(room) %>
|
|
<%= link_to type_change_path, class: "btn--faux flex-inline", tabindex: "-1", data: { turbo_action: "replace" } do %>
|
|
<label for="room_type" class="switch">
|
|
<input type="checkbox" id="room_type" class="switch__input" checked="checked">
|
|
<span class="switch__btn round"></span>
|
|
<span class="for-screen-reader">Give only some access to this room</span>
|
|
</label>
|
|
<% end %>
|
|
<% end %>
|
|
</li>
|
|
|
|
<hr class="separator full-width" style="--border-style: solid">
|
|
|
|
<%= user_filter_search_tag if users.count > 20 %>
|
|
|
|
<div data-filter-target="list" contents>
|
|
<%= render partial: "rooms/opens/user", collection: users, locals: { room: room } %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|