philomena/lib/philomena_web/templates/profile/alias/_aliases.html.slime
2019-12-16 21:26:43 -05:00

37 lines
711 B
Text

= for u <- @aliases do
tr
td
= link u.name, to: Routes.profile_path(@conn, :show, u)
td
= @type
= cond do
- younger_than_7_days?(u) ->
td.danger
= pretty_time u.created_at
- younger_than_14_days?(u) ->
td.warning
= pretty_time u.created_at
- true ->
td.success
= pretty_time u.created_at
= cond do
- not is_nil(u.deleted_at) ->
td.danger
' Account Disabled
- currently_banned?(u) ->
td.danger
' Currently Banned
- previously_banned?(u) ->
td.danger
' Previously banned
- true ->
td.success
' Never banned