a830ec1999
pulling the avatars down from the "people" partial, and pulling the add button up from the "assignment" partial. The result is: - the "bubbles/sidebar/assignment" partial is just the dialog box - the "bubbles/assignees" partial contains everything about assignees - the "bubbles/people" partial makes one render call and I've introduced some turbo frames in the expectation of the next commit which will load the dialog in the background.
19 lines
823 B
Plaintext
19 lines
823 B
Plaintext
<%= turbo_frame_tag bubble, :assignees do %>
|
|
<div class="flex">
|
|
<% bubble.assignees.each do |assignee| %>
|
|
<%= avatar_tag assignee, loading: :lazy, class: "avatar" %>
|
|
<% end %>
|
|
|
|
<div class="position-relative" data-controller="dialog" data-action="keydown.esc->dialog#close click@document->dialog#closeOnClickOutside">
|
|
<button class="btn card__hide-on-index <%= bubble.creating? || bubble.drafted? ? "fill-highlight" : "fill-transparent" %>" data-action="click->dialog#open:stop">
|
|
<%= image_tag "add.svg", aria: { hidden: true }, size: 24 %>
|
|
<span class="for-screen-reader">Assign</span>
|
|
</button>
|
|
|
|
<turbo-frame id="<%= dom_id(bubble, :assignment) %>">
|
|
<%= render "bubbles/sidebar/assignment", bubble: bubble %>
|
|
</turbo-frame>
|
|
</div>
|
|
</div>
|
|
<% end %>
|