Sha256: 68211fc3c94429585bc03e518bc4f2c435bfdaabcc41e1c5ef341bd02c6584eb

Contents?: true

Size: 1.2 KB

Versions: 12

Compression:

Stored size: 1.2 KB

Contents

<div class="row">
  <div class="small-12 columns">
    <h1>Users<%= " for #{@group.title}" if @group %></h1>
    <%= link_to 'New', new_user_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 @users.size > 0 %>
      <table id="users_table">
        <tbody>
          <% @users.each do |user| %>
            <tr>
              <td width="10%"><%= gravatar_for user %></td>
              <td><%= user.name %></td>
              <td><%= user.email %></td>
              <td><%= user.groups.map(&:title).join(', ') %></td>
              <td align="right" class="action_links">
                <%= link_to 'Edit', edit_user_path(user) %>
                <%= link_to_destroy 'Destroy', user %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    <% else %>
      <% if @group %>
    <p>There are no users for this group (<%= @group.title %>).</p>
      <% else %>
        <p>There are no users added.</p>
      <% end %>
    <% end %>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

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