Sha256: f2e3321cdb587b77316f723a9c7261b0ccac0a2f5dc08f26b65a0245c03213a1

Contents?: true

Size: 1.05 KB

Versions: 38

Compression:

Stored size: 1.05 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>

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

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

  </td>

</tr>

Version data entries

38 entries across 21 versions & 1 rubygems

Version Path
usman-0.3.9 app/views/usman/user_roles/_row.html.erb
usman-0.3.9 app/views/usman/registration_devices/_row.html.erb
usman-0.3.8 app/views/usman/user_roles/_row.html.erb
usman-0.3.8 app/views/usman/registration_devices/_row.html.erb
usman-0.3.7 app/views/usman/registration_devices/_row.html.erb
usman-0.3.7 app/views/usman/user_roles/_row.html.erb
usman-0.3.6 app/views/usman/user_roles/_row.html.erb
usman-0.3.6 app/views/usman/registration_devices/_row.html.erb
usman-0.3.5 app/views/usman/user_roles/_row.html.erb
usman-0.3.5 app/views/usman/registration_devices/_row.html.erb
usman-0.3.4 app/views/usman/user_roles/_row.html.erb
usman-0.3.4 app/views/usman/registration_devices/_row.html.erb
usman-0.3.3 app/views/usman/user_roles/_row.html.erb
usman-0.3.3 app/views/usman/registration_devices/_row.html.erb
usman-0.3.2 app/views/usman/registration_devices/_row.html.erb
usman-0.3.2 app/views/usman/user_roles/_row.html.erb
usman-0.3.1 app/views/usman/registration_devices/_row.html.erb
usman-0.3.1 app/views/usman/user_roles/_row.html.erb
usman-0.3.0 app/views/usman/user_roles/_row.html.erb
usman-0.3.0 app/views/usman/registration_devices/_row.html.erb