From b899c1aeb38654a12b2b0496aff2a07af045bbe0 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 2 Jul 2022 12:54:56 +0200 Subject: [PATCH] Order past bans newest-first --- 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 a8af1389..3ca3be1d 100644 --- a/app/views/modal/ban/_history.haml +++ b/app/views/modal/ban/_history.haml @@ -1,7 +1,7 @@ .modal-body %p= t '.count', user: user.screen_name, count: user.bans.count .list-group - - user.bans.each do |ban| + - user.bans.order(:created_at).reverse_order.each do |ban| .list-group-item{ class: ban.current? ? 'list-group-item-success' : '' } .d-flex.w-100.justify-content-between %h5.mb-1= ban.reason