From 583133ae6a5d9266aeaedb147aa5ff4a1e75ea2a Mon Sep 17 00:00:00 2001 From: elviabth Date: Thu, 4 Apr 2024 13:45:35 +0200 Subject: [PATCH] change datetime format in index table --- .../anonymous_codes/admin/code_groups/index.html.erb | 4 +++- config/locales/en.yml | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/decidim/anonymous_codes/admin/code_groups/index.html.erb b/app/views/decidim/anonymous_codes/admin/code_groups/index.html.erb index 3d59a03..426c937 100644 --- a/app/views/decidim/anonymous_codes/admin/code_groups/index.html.erb +++ b/app/views/decidim/anonymous_codes/admin/code_groups/index.html.erb @@ -20,9 +20,11 @@ <% groups.each do |group| %> <%= translated_attribute(group.title) %> - <%= translated_attribute(group.expires_at) %> + <%= translated_attribute(l(group.expires_at, format: :decidim_short)) %> <%= translated_attribute(group.active) %> + <%= translated_attribute(group.tokens.count) %> <%= translated_attribute(group.max_reuses) %> + <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 61ad251..d568266 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -4,11 +4,11 @@ en: admin: code_group: index: - title: Title - expires_at: Expires at active: Active - num_of_tockens: Num. of Tockens + expires_at: Expires at max_reuses: Re-use max + num_of_tockens: Num. of Tockens + title: Title menu: anonymous_codes: Access Codes anonymous_codes: