From 645469daa539d847771b91650377d41295651faf Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 2 Jul 2022 12:53:40 +0200 Subject: [PATCH] Correctly display time ago in ban history --- app/views/modal/ban/_history.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/modal/ban/_history.haml b/app/views/modal/ban/_history.haml index 72d1e811..a8af1389 100644 --- a/app/views/modal/ban/_history.haml +++ b/app/views/modal/ban/_history.haml @@ -5,7 +5,7 @@ .list-group-item{ class: ban.current? ? 'list-group-item-success' : '' } .d-flex.w-100.justify-content-between %h5.mb-1= ban.reason - %small.text-muted= time_ago_in_words ban.created_at + %small.text-muted= t('time.distance_ago', time: time_ago_in_words(ban.created_at)) - if ban.banned_by.present? %p= t('.issued_by', user: ban.banned_by.screen_name) - if ban.expires_at.present?