Skip to content

Commit

Permalink
Merge pull request #302 from spree/fix/promotion_expires_at_in_admin_…
Browse files Browse the repository at this point in the history
…panel

Fix Promotions#index view when a promotion has expires_at set
  • Loading branch information
rafalcymerys authored Jan 16, 2024
2 parents 2ebeb2b + ab5b4d5 commit e1b847f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/admin/promotions/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<td><%= promotion.description %></td>
<td><%= promotion.usage_limit.nil? ? "∞" : promotion.usage_limit %></td>
<td><%= Spree.t(:current_promotion_usage, count: promotion.credits_count) %></td>
<td><%= promotion.expires_at.to_date.to_s(:short_date) if promotion.expires_at %></td>
<td><%= promotion.expires_at.strftime('%F %T %Z') if promotion.expires_at %></td>
<td class="actions" data-hook="admin_promotions_index_row_actions">
<span class="d-flex justify-content-end">
<%= link_to_edit promotion, no_text: true if can?(:edit, promotion) %>
Expand Down

0 comments on commit e1b847f

Please sign in to comment.