Sha256: 2208c60bc3955d8d8b71eb10e720c59a3f5a9d73567af8aec0cd67c02f271788

Contents?: true

Size: 1.31 KB

Versions: 17

Compression:

Stored size: 1.31 KB

Contents

<%= render 'tab_admin_menu' %>

<%= will_paginate @members, inner_window: 2 %>

<table class='table table-striped'>
  <thead>
    <tr>
      <th>Name</th>
      <th>Email</th>
      <th>Admin?</th>
      <th><%= t('actions') %></th>
    </tr>
  </thead>

  <tbody>
    <% @members.each do |member| %>
      <tr>
        <td><%= link_to member.name, member, title: 'view' %></td>
        <td><%= member.email %></td>
        <td>
          <% unless member.admin? %>
            <span class="glyphicon glyphicon-remove"></span> <%= link_to t('authentication.enable_admin'), make_admin_user_path(member), class: 'btn btn-xs btn-default', method: :post %>
          <% else %>
            <span class="glyphicon glyphicon-ok"></span> <%= link_to t('authentication.disable_admin'), remove_admin_user_path(member), class: 'btn btn-xs btn-primary', method: :post %>
          <% end -%>
        </td>
        <td><%= link_to t('edit'), edit_member_path(member), :class => 'btn btn-xs btn-default' %><%= link_to t('delete'), member, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate @members, inner_window: 2 %>

<p><%= link_to 'Add a New Member', new_member_path, class: 'btn btn-default' %></p>

<%= render 'shared/admin_sidebar' %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
tkh_mailing_list-0.11.3 app/views/members/index.html.erb
tkh_mailing_list-0.11.2 app/views/members/index.html.erb
tkh_mailing_list-0.11.1.1 app/views/members/index.html.erb
tkh_mailing_list-0.11.1 app/views/members/index.html.erb
tkh_mailing_list-0.11 app/views/members/index.html.erb
tkh_mailing_list-0.10.10 app/views/members/index.html.erb
tkh_mailing_list-0.10.9.1 app/views/members/index.html.erb
tkh_mailing_list-0.10.9 app/views/members/index.html.erb
tkh_mailing_list-0.10.8 app/views/members/index.html.erb
tkh_mailing_list-0.10.7 app/views/members/index.html.erb
tkh_mailing_list-0.10.6 app/views/members/index.html.erb
tkh_mailing_list-0.10.5 app/views/members/index.html.erb
tkh_mailing_list-0.10.4 app/views/members/index.html.erb
tkh_mailing_list-0.10.3 app/views/members/index.html.erb
tkh_mailing_list-0.10.2 app/views/members/index.html.erb
tkh_mailing_list-0.10.1 app/views/members/index.html.erb
tkh_mailing_list-0.10 app/views/members/index.html.erb