<% if bubble.popped? %> Completed by <%= bubble.popped_by.name %> on <%= local_datetime_tag(bubble.popped_at, style: :shortdate) %>. <%= button_to bucket_bubble_pop_path(bubble.bucket, bubble), method: :delete, class: "btn btn--plain borderless fill-transparent" do %> Un-do <% end %> <% else %>
Close as… <% Current.account.pop_reasons.labels.each do |label| %> <%= button_to bucket_bubble_pop_path(bubble.bucket, bubble, reason: label), class: "btn popup__item full-width", form_class: "full-width" do %> <%= label %> <% end %> <% end %>
<% if bubble.doing? %> Returns to Considering if no activity <%= local_datetime_tag(bubble.auto_reconsider_at, style: :indays) -%>. <% else %> Auto-closes if no activity <%= local_datetime_tag(bubble.auto_pop_at, style: :indays) -%>. <% end %> <% end %>