Skip to content
Snippets Groups Projects
Unverified Commit 78edc547 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents 5319e232 af58e301
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