Sha256: 5c9d868bf584373eb97764ae9b87da7395712481dd82c4549f64aa5df03bd0e2

Contents?: true

Size: 1006 Bytes

Versions: 12

Compression:

Stored size: 1006 Bytes

Contents

<div class="row">
  <div class="small-12 columns">
    <h1>User Groups</h1>
    <%= link_to 'New', new_group_path, class: 'button' %>
  </div>
</div>

<% if notice %>
  <div class="row">
    <div class="small-12 columns">
      <div class="callout success notice">
        <p><%= notice %></p>
      </div>
    </div>
  </div>
<% end %>

<div class="row">
  <div class="small-12 columns">
    <% if @groups.size > 0 %>
      <table>
        <tbody>
          <% @groups.each do |group| %>
            <tr>
              <td><%= group.title %></td>
              <td><%= link_to pluralize(group.users.size, 'user', 'users'), users_path(group: group.id) %></td>
              <td align="right" class="action_links">
                <%= link_to 'Edit', edit_group_path(group) %>
                <%= link_to_destroy 'Destroy', group %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    <% else %>
      <p>No groups have been added.</p>
    <% end %>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
guts-1.3.6 app/views/guts/groups/index.html.erb
guts-1.3.5 app/views/guts/groups/index.html.erb
guts-1.3.4 app/views/guts/groups/index.html.erb
guts-1.3.3 app/views/guts/groups/index.html.erb
guts-1.3.2 app/views/guts/groups/index.html.erb
guts-1.3.1 app/views/guts/groups/index.html.erb
guts-1.3.0 app/views/guts/groups/index.html.erb
guts-1.2.2 app/views/guts/groups/index.html.erb
guts-1.2.1 app/views/guts/groups/index.html.erb
guts-1.2.0 app/views/guts/groups/index.html.erb
guts-1.1.1 app/views/guts/groups/index.html.erb
guts-1.1.0 app/views/guts/groups/index.html.erb