2019-12-08 21:32:54 +01:00
|
|
|
table.table
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th Ban Enacted
|
|
|
|
th Ban Expires
|
2023-11-23 17:07:49 +01:00
|
|
|
th.hidden--mobile Duration
|
2019-12-08 21:32:54 +01:00
|
|
|
th Active?
|
|
|
|
th Reason
|
|
|
|
th Ban ID
|
|
|
|
tbody
|
2019-12-08 21:35:19 +01:00
|
|
|
= for b <- @bans do
|
2019-12-08 21:32:54 +01:00
|
|
|
tr
|
|
|
|
td = pretty_time b.created_at
|
|
|
|
td = pretty_time b.valid_until
|
2023-11-23 17:07:49 +01:00
|
|
|
td.hidden--mobile = distance_of_time_in_words b.created_at, b.valid_until
|
2019-12-08 21:32:54 +01:00
|
|
|
= if active?(b) do
|
|
|
|
td.success Yes
|
|
|
|
- else
|
|
|
|
td.danger No
|
|
|
|
td = b.reason
|
2021-02-02 20:03:54 +01:00
|
|
|
td = b.generated_ban_id
|