From 9b5f3e65f26d223daadff1634056e57a82530d75 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Wed, 8 Nov 2023 19:18:07 +0100 Subject: [PATCH] Use short format The long one takes away a lot of row space. --- .../admin/promotions/_table.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/promotions/app/views/solidus_friendly_promotions/admin/promotions/_table.html.erb b/promotions/app/views/solidus_friendly_promotions/admin/promotions/_table.html.erb index c4b84890..36eb4812 100644 --- a/promotions/app/views/solidus_friendly_promotions/admin/promotions/_table.html.erb +++ b/promotions/app/views/solidus_friendly_promotions/admin/promotions/_table.html.erb @@ -31,16 +31,16 @@ <%= promotion.usage_count %> / <%= promotion.usage_limit %> <% end %> - <%= l(promotion.starts_at) if promotion.starts_at %> + <%= l(promotion.starts_at, format: :short) if promotion.starts_at %> - <%= l(promotion.expires_at) if promotion.expires_at %> + <%= l(promotion.expires_at, format: :short) if promotion.expires_at %> <%= SolidusFriendlyPromotions::Promotion.human_enum_name(:lane, promotion.lane) %> - <%= l(promotion.updated_at) %> + <%= l(promotion.updated_at, format: :short) %> <% if can?(:edit, promotion) %>