Order past bans newest-first

This commit is contained in:
Karina Kwiatek 2022-07-02 12:54:56 +02:00 committed by Karina Kwiatek
parent 645469daa5
commit b899c1aeb3
1 changed files with 1 additions and 1 deletions

View File

@ -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