extends base

block title
  | System users

block main
  h2 System users

  if message != ''
    .alert
      button.close(data-dismiss="alert", href="#") &times;
      | #{message}

  table.table.table-striped
    tr
      th Name
      th Username
      th Email
      th Created
      th Actions
    each user in user_profiles
      tr
        td= user.name
        td= user.username
        td= user.email
        td= user.created
        td
          a(href='/users/#{user.id}/edit') edit
          |  | 
          a(href='/users/#{user.id}/destroy', onclick='return confirm("Are you sure you want to delete user #{user.username}?") ? true : false') delete
