philomena/lib/philomena_web/templates/ban/_bans.html.slime

22 lines
489 B
Text
Raw Normal View History

2019-12-08 21:32:54 +01:00
table.table
thead
tr
th Ban Enacted
th Ban Expires
th.hide-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
td.hide-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
td = b.generated_ban_id