diff --git a/app/views/bubbles/_card_mini.html.erb b/app/views/bubbles/cards/_mini.html.erb similarity index 83% rename from app/views/bubbles/_card_mini.html.erb rename to app/views/bubbles/cards/_mini.html.erb index 7559c699d..50813807d 100644 --- a/app/views/bubbles/_card_mini.html.erb +++ b/app/views/bubbles/cards/_mini.html.erb @@ -9,8 +9,8 @@ <%= local_datetime_tag(bubble.created_at, style: :daysAgo) %>
- <%= render "bubbles/assignees", bubble: bubble %> -
<%= render "bubbles/tags", bubble: bubble %>
+ <%= render "bubbles/cards/mini/assignees", bubble: bubble %> +
<%= render "bubbles/cards/mini/tags", bubble: bubble %>
diff --git a/app/views/bubbles/cards/mini/_assignees.html.erb b/app/views/bubbles/cards/mini/_assignees.html.erb new file mode 100644 index 000000000..7fa0214e4 --- /dev/null +++ b/app/views/bubbles/cards/mini/_assignees.html.erb @@ -0,0 +1,14 @@ +<%= turbo_frame_tag bubble, :assignees do %> +
+ <% bubble.assignees.each do |assignee| %> + <%= avatar_tag assignee, loading: :lazy, class: "avatar" %> + <% end %> + +
+ +
+
+<% end %> diff --git a/app/views/bubbles/cards/mini/_tags.html.erb b/app/views/bubbles/cards/mini/_tags.html.erb new file mode 100644 index 000000000..41bfb947e --- /dev/null +++ b/app/views/bubbles/cards/mini/_tags.html.erb @@ -0,0 +1,22 @@ +<%= turbo_frame_tag bubble, :tags do %> +
+
+ <% if bubble.tags.any? || bubble.creating? %> + # + <% 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 %> + <%= tag.title %> + <% end %><%= ", " unless index == bubble.tags.size - 1 %> + <% end %> + <% end %> +
+ +
+ +
+
+<% end %> diff --git a/app/views/bubbles/index/bubbles/_considering.html.erb b/app/views/bubbles/index/bubbles/_considering.html.erb index 065519437..972481b6e 100644 --- a/app/views/bubbles/index/bubbles/_considering.html.erb +++ b/app/views/bubbles/index/bubbles/_considering.html.erb @@ -4,7 +4,7 @@ <% 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 %>

Nothing here

<% end %>