<% if cuser and cuser.allowed_to_ban? %> <% end %> <% bans.each do |ban| %> <% if cuser and cuser.allowed_to_ban? %> <% end %> <% end %>
User Type Expiry Reason
<% if ban.user %> <%= link_to "#{ban.user}", ban %> <% else %> <%= link_to "# #{ban.id}", ban %> <% end %> <%= ban.types[ban.ban_type] %> <%= shorttime ban.expiry %> <%= shorten ban.reason, 30 %> <% if ban.can_update? cuser %> <%= link_to icon('pencil'), edit_ban_path(ban) %> <% end %> <% if ban.can_destroy? cuser %> <%= link_to icon('times'), ban, confirm: 'Are you sure?', method: :delete %> <% end %>