mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-17 11:04:22 +01:00
21 lines
461 B
Text
21 lines
461 B
Text
|
table.table
|
||
|
thead
|
||
|
tr
|
||
|
th Ban Enacted
|
||
|
th Ban Expires
|
||
|
th Duration
|
||
|
th Active?
|
||
|
th Reason
|
||
|
th Ban ID
|
||
|
tbody
|
||
|
= for b <- @bans
|
||
|
tr
|
||
|
td = pretty_time b.created_at
|
||
|
td = pretty_time b.valid_until
|
||
|
td = distance_of_time_in_words b.created_at, b.valid_until
|
||
|
= if active?(b) do
|
||
|
td.success Yes
|
||
|
- else
|
||
|
td.danger No
|
||
|
td = b.reason
|
||
|
td = b.generated_ban_id
|