<% if auction.in_progress? %> <%= render partial: 'spree/shared/ends_in', locals: { auction: auction } %> <% elsif auction.complete %> <%= Spree.t("complete") %> <% else %> <%= render partial: 'spree/shared/starts_in', locals: { auction: auction } %> <% end %>