Sha256: affab032cb7c1f0590bb4147ea63ab03f24b5bca001ad5ec2767f7bb3cbff1ba

Contents?: true

Size: 1.2 KB

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
guts-1.0.8 app/views/guts/users/index.html.erb
guts-1.0.7 app/views/guts/users/index.html.erb
guts-1.0.5 app/views/guts/users/index.html.erb
guts-1.0.3 app/views/guts/users/index.html.erb