Retrospring/app/views/modal/ban/_history.haml

15 lines
551 B
Plaintext
Raw Normal View History

2022-07-02 03:19:56 -07:00
.modal-body
%p= t '.count', user: user.screen_name, count: user.bans.count
.list-group
- user.bans.each do |ban|
.list-group-item
.d-flex.w-100.justify-content-between
%h5.mb-1= ban.reason
%small.text-muted= 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?
%small= t('.until', until: ban.expires_at.strftime('%Y-%m-%d %H:%M:%S'))
- else
%small= t('.permanent')