Sha256: d90a4c1911b545bcb59a0e2ed41691277c69c421a0f90fbc11d593447fb54e7b

Contents?: true

Size: 648 Bytes

Versions: 5

Compression:

Stored size: 648 Bytes

Contents

<div class="grid">
  <div class="col-1-2">
    <h1>Usuários</h1>
  </div>
  <div class="col-1-2 section-options">
  </div>
</div>

<%= link_to "Novo Usuário", new_site_user_path(@site) if current_user.admin? %>

<br />
<br />

<table>
  <thead>
    <tr>
      <th>Nome</th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @users.each do |user| %>
        <tr id="user-<%= user.id %>">
          <td>
            <%= link_to user.name,
              edit_site_user_path(@site, user),
              id: "edit-user-#{user.id}" %>
          </td>
          <td><%= user.roles.join(", ") %></td>
        </tr>
    <% end %>
  </tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 app/views/cas/sites/users/index.html.erb
cas-cms-1.0.0.alpha1 app/views/cas/sites/users/index.html.erb
cas-cms-0.1.3 app/views/cas/sites/users/index.html.erb
cas-cms-0.1.2 app/views/cas/sites/users/index.html.erb
cas-cms-0.1.1 app/views/cas/sites/users/index.html.erb