Sha256: 36d62f5240c82ac9d53f47e70f87a18d43870721121a0ce224d911c722901b32

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

<%= link_to "New User", new_admin_user_path, :class => "btn btn-primary" %>

<table class="table">
  <thead>
  <tr>
    <th>Email</th>
    <th></th>
  </tr>
  </thead>
  <tbody>
  <% @users.each do |user| %>
      <tr>
        <td><%= user.email %></td>
        <td>
          <% if current_user == user %>
              <%= link_to 'Edit', edit_admin_user_path(user) %>
          <% else %>
              <%= link_to 'Delete', admin_user_path(user), :confirm => "Are you sure?", :method => :delete %>
          <% end %>
        </td>
      </tr>
  <% end %>
  </tbody>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
et_cms-0.0.2 app/views/et_cms/admin/user/index.html.erb
et_cms-0.0.1 app/views/et_cms/admin/user/index.html.erb