25 lines
976 B
Plaintext
25 lines
976 B
Plaintext
<li class="flex align-center gap-half margin-none unpad" data-value="<%= user.name.downcase %>">
|
|
<figure class="avatar flex-item-no-shrink">
|
|
<%= avatar_tag user, loading: :lazy %>
|
|
</figure>
|
|
|
|
<div class="min-width">
|
|
<div class="overflow-ellipsis">
|
|
<strong><%= user.name %></strong>
|
|
</div>
|
|
</div>
|
|
|
|
<hr class="separator--horizontal flex-item-grow" style="--border-color: var(--color-subtle-dark); --border-style: dashed" aria-hidden="true">
|
|
|
|
<% if user == Current.user %>
|
|
<%= hidden_field_tag "user_ids[]", user.id, id: nil %>
|
|
<%= image_tag "check.svg", size: 20, class: "colorize--black flex-item-no-shrink", aria: { hidden: "true" } %>
|
|
<% else %>
|
|
<label class="switch flex-item-no-shrink">
|
|
<%= check_box_tag "user_ids[]", user.id, selected, class: "switch__input", id: nil %>
|
|
<span class="switch__btn round"></span>
|
|
<span class="for-screen-reader">Give <%= user.name %> access</span>
|
|
</label>
|
|
<% end %>
|
|
</li>
|