Sha256: a5f8211fb442acef4cb9b9efe5bef5ad6d6cb159224910613c5de7cf7f15c033

Contents?: true

Size: 1.8 KB

Versions: 5

Compression:

Stored size: 1.8 KB

Contents

<div class="table-responsive"> 
	<table class="table table-hover members-table middle-align">
	  <thead> 
			<tr> 
				<th style="width:60px" class="hidden-sm hidden-xs">#</th> 
				<th style="width:100px"><i class="fa fa-photo"></i></th> 
				<th>Name</th>
				<th class="hidden-sm hidden-xs">Roles</th>
				<% if display_delete_links? %>
				<th style="text-align: center;" colspan="2">Actions</th>
				<% end %>
			</tr>  
		</thead>
		
	  <tbody>
	  	<% @users.each_with_index do |user, i| %>
	  			
	  		<% delete_link = role_user_path(@role, user) %>
				
		    <tr id="tr_user_<%= user.id %>">
		      
		      <th scope="row" style="" class="hidden-sm hidden-xs">
						<% 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="">
		        <%= link_to(user_path(user), remote: true) do %>
		        	<%= display_image(user, "profile_picture.image.small.url", width: "40", height: "auto", class: "img-rectangle", alt: user.display_name) %>
		        <% end %>
		      </td>

					<td><%= user.display_name %></td>

		      <td class="hidden-sm hidden-xs">
		      	<% 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>
		  <% end %>
	  </tbody>
	</table>
</div>

<div class="row">
  <div class="col-sm-12">
    <%= paginate_kuppayam(@users) %>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
usman-0.3.38 app/views/usman/user_roles/_index.html.erb
usman-0.3.37 app/views/usman/user_roles/_index.html.erb
usman-0.3.36 app/views/usman/user_roles/_index.html.erb
usman-0.3.35 app/views/usman/user_roles/_index.html.erb
usman-0.3.34 app/views/usman/user_roles/_index.html.erb