Move card mini templates to its own folder
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
<%= local_datetime_tag(bubble.created_at, style: :daysAgo) %>
|
||||
</div>
|
||||
<div class="card__stuff flex align-center gap">
|
||||
<%= render "bubbles/assignees", bubble: bubble %>
|
||||
<div class="overflow-ellipsis"><%= render "bubbles/tags", bubble: bubble %></div>
|
||||
<%= render "bubbles/cards/mini/assignees", bubble: bubble %>
|
||||
<div class="overflow-ellipsis"><%= render "bubbles/cards/mini/tags", bubble: bubble %></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<%= 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">
|
||||
<%= icon_tag "add" %>
|
||||
<span class="for-screen-reader">Assign</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,22 @@
|
||||
<%= turbo_frame_tag bubble, :tags do %>
|
||||
<div class="card__tags flex align-center flex-item-grow min-width">
|
||||
<div class="overflow-ellipsis">
|
||||
<% if bubble.tags.any? || bubble.creating? %>
|
||||
<span># </span>
|
||||
<% bubble.tags.each_with_index do |tag, index| %>
|
||||
<%= link_to bubbles_path(bucket_ids: [ bubble.bucket ], tag_ids: [ tag.id ]),
|
||||
class: "card__tag btn btn--plain min-width txt-uppercase fill-transparent", data: { turbo_frame: "_top" } do %>
|
||||
<span class="overflow-ellipsis"><%= tag.title %></span>
|
||||
<% end %><%= ", " unless index == bubble.tags.size - 1 %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="position-relative" data-controller="dialog" data-action="keydown.esc->dialog#close click@document->dialog#closeOnClickOutside">
|
||||
<button class="tag-picker__button btn card__hide-on-index <%= bubble.creating? || bubble.drafted? ? "fill-highlight" : "fill-transparent" %>" data-action="click->dialog#open:stop">
|
||||
<%= icon_tag "tag" %>
|
||||
<span class="for-screen-reader">Add a tag</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -4,7 +4,7 @@
|
||||
</h2>
|
||||
|
||||
<% if bubbles.any? %>
|
||||
<%= render partial: "bubbles/card_mini", collection: bubbles, as: :bubble, cached: true %>
|
||||
<%= render partial: "bubbles/cards/mini", collection: bubbles, as: :bubble, cached: true %>
|
||||
<% else %>
|
||||
<p class="txt-medium translucent">Nothing here</p>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user