41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
<table class="table main-list">
|
|
<thead>
|
|
<tr class="sort-header">
|
|
<% @table_fields.each do |f| %>
|
|
<%= thead(f) %>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @members.each do |member| %>
|
|
<tr>
|
|
<td>
|
|
<%= member.name rescue "" %>
|
|
<% if (!member.enabled) %>
|
|
<span class='label'><%= t(:disabled) %></span>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<a href="#"><%= member.user_name %></a>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills">
|
|
<% if can_edit_or_delete?(member) %>
|
|
<!-- <li><a href="<%#= edit_admin_pseudo_member_path(member, :page => params[:page]) %>"><%= t(:edit) %></a></li> -->
|
|
<li><a href="<%= admin_pseudo_member_path(member, :page => params[:page]) %>" data-method="delete" data-confirm="Are you sure?" class="delete text-error"><%= t(:delete_) %></a></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<%= member.last_login.strftime("%y-%m-%d %H:%M") rescue "Not loggedin yet" %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%=
|
|
content_tag :div, class: "bottomnav clearfix" do
|
|
content_tag :div, paginate(@members), class: "pagination pagination-centered"
|
|
end
|
|
%> |