<%= "Added to #{bubble.bucket.name} by #{bubble.creator.name}" %> <%=
days = (Date.current - bubble.created_at.to_date).to_i
case days
when 0 then "today"
when 1 then "yesterday"
else "#{days} days ago".html_safe
end
%>
<% if bubble.tags.any? %>
#
<% bubble.tags.each_with_index do |tag, index| %>
<%= link_to bubbles_path(bucket_ids: [ bubble.bucket ], tag_ids: [ tag.id ]),
class: "bubble__tag btn btn--plain fill-transparent min-width", style: "font-weight: 700;", data: { turbo_frame: "_top" } do %>
<%= tag.title %>
<% end %><%= ", " unless index == bubble.tags.size - 1 %>
<% end %>
<% end %>
<% if bubble.stage %>
<% workflow = Current.account.workflows.first %>
<% workflow.stages.each do |stage| %>
<%= button_to_set_stage bubble, stage %>
<% end %>
<% end %>