Skip to content
Snippets Groups Projects
Commit eca5e86f authored by pabois's avatar pabois
Browse files

affichage

parent d8d4f769
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ class Admin::UsersController < Admin::ApplicationController
load_and_authorize_resource
def index
@users = current_university.users.ordered
@users = current_university.users.ordered.page(params[:page])
breadcrumb
end
......
<% content_for :title, User.model_name.human(count: 2) %>
<% content_for :title, "#{User.model_name.human(count: 2)} (#{@users.total_count})" %>
<table class="table">
<thead>
......@@ -29,6 +30,7 @@
<% end %>
</tbody>
</table>
<%= paginate @users, theme: 'bootstrap-5' %>
<% content_for :action_bar_right do %>
<%= create_link User %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment