Sha256: baf7612446a57365ffb677d3dba120f2ba1660747afa22a6e780f29ac9dd0627

Contents?: true

Size: 1.1 KB

Versions: 29

Compression:

Stored size: 1.1 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=\"linecons-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

29 entries across 29 versions & 1 rubygems

Version Path
usman-0.3.38 app/views/usman/user_roles/_row.html.erb
usman-0.3.37 app/views/usman/user_roles/_row.html.erb
usman-0.3.36 app/views/usman/user_roles/_row.html.erb
usman-0.3.35 app/views/usman/user_roles/_row.html.erb
usman-0.3.34 app/views/usman/user_roles/_row.html.erb
usman-0.3.33 app/views/usman/user_roles/_row.html.erb
usman-0.3.32 app/views/usman/user_roles/_row.html.erb
usman-0.3.31 app/views/usman/user_roles/_row.html.erb
usman-0.3.30 app/views/usman/user_roles/_row.html.erb
usman-0.3.29 app/views/usman/user_roles/_row.html.erb
usman-0.3.28 app/views/usman/user_roles/_row.html.erb
usman-0.3.27 app/views/usman/user_roles/_row.html.erb
usman-0.3.26 app/views/usman/user_roles/_row.html.erb
usman-0.3.25 app/views/usman/user_roles/_row.html.erb
usman-0.3.24 app/views/usman/user_roles/_row.html.erb
usman-0.3.23 app/views/usman/user_roles/_row.html.erb
usman-0.3.22 app/views/usman/user_roles/_row.html.erb
usman-0.3.21 app/views/usman/user_roles/_row.html.erb
usman-0.3.20 app/views/usman/user_roles/_row.html.erb
usman-0.3.19 app/views/usman/user_roles/_row.html.erb