<%= bubble.creating? ? "Added" : "Updated" %> <%= days = (Date.current - bubble.updated_at.to_date).to_i case days when 0 then "Today".html_safe when 1 then "Yesterday".html_safe else "#{days} days ago".html_safe end %>
<% if bubble.creating? %> Expires <%= days = (bubble.auto_pop_at.to_date - Date.current).to_i case days when 0 then "Today".html_safe else "in #{days} days".html_safe end %> <% else %> Added <%= days = (Date.current - bubble.created_at.to_date).to_i case days when 0 then "Today".html_safe when 1 then "Yesterday".html_safe else "#{days} days ago".html_safe end %> <% end %>

<%= bubble.comments_count %> <%= bubble.comments_count == 1 ? "comment" : "comments" %>
<%= render "bubbles/boosts", bubble: bubble %>