<table class="uk-table uk-table-divider">
  <thead>
    <tr>
      <th>Username</th>
      <th>Admin Access</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <%- users.each do |u| -%>
    <tr>
      <td><%= u[0] %></td>
      <td><%= u[1] %></td>
      <td>
        <a href="<%= base_url %>admin/user/edit?username=<%= u[0] %>&admin=<%= u[1] %>" uk-icon="file-edit"></a>
        <%- if u[0] != username %>
        <a href="#" onclick="remove('<%= u[0] %>');return false;" uk-icon="trash"></a>
        <%- end %>
      </td>
    </tr>
    <%- end -%>
  </tbody>
</table>

<a href="<%= base_url %>admin/user/edit" class="uk-button uk-button-primary">New User</a>


<% content_for "script" do %>
<script src="<%= base_url %>js/alert.js"></script>
<script src="<%= base_url %>js/user.js"></script>
<% end %>