Sha256: 853b875dfdc496741481c3fb4947531a2251c11fc75d061a59bdc8edb59d7dc3

Contents?: true

Size: 1.09 KB

Versions: 11

Compression:

Stored size: 1.09 KB

Contents

<% edit_link = edit_role_user_path(@role, user) %>
<% delete_link = role_user_path(@role, user) %>

<tr id="tr_user_<%= user.id %>">

  <th scope="row" style="text-align: center;">
    <% if i < 0 %>
      <i class="fa fa-check text-success"></i>
    <% else %>
      <%= i + 1 + (@per_page.to_i * (@current_page.to_i - 1)) %>
    <% end %>
  </th>

  <td class="user-image">
    <%= link_to(user_path(user), remote: true) do %>
      <%= display_image(user, "profile_picture.image.small.url", width: "120", height: "auto", class: "img-rectangle", alt: user.display_name) %>
    <% end %>
  </td>

  <td class="user-name"><%= user.display_name %></td>

  <td class="user-name">
    <% user.roles.collect(&:name).each do |r| %>
      <span class="ml-5 label label-primary"><%= r %></span>
    <% end %>
  </td>

  <% if display_delete_links? %>

  <td class="action-links" style="width:10%">

    <%= link_to raw("<i class=\"fa-trash\"></i> Remove Role"), delete_link, method: :delete, user: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %>

  </td>

  <% end %>

</tr>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
usman-0.4.10.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.9.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.8.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.7.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.6.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.5.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.4.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.3.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.2.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.1.pre.materialize app/views/usman/user_roles/_row.html.erb
usman-0.4.0.pre.materialize app/views/usman/user_roles/_row.html.erb