mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-02 17:00:49 +02:00
Added pagination to checks.
This commit is contained in:
parent
3ef8e6322a
commit
6687c3d341
|
@ -5,7 +5,7 @@ class ChecksController < ApplicationController
|
|||
after_action :verify_policy_scoped, only: :index
|
||||
|
||||
def index
|
||||
@checks = policy_scope(Check).order(:domain_expires_at)
|
||||
@checks = policy_scope(Check).order(:domain_expires_at).page(params[:page])
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
|
@ -30,3 +30,5 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<%= paginate @checks %>
|
||||
|
|
Loading…
Reference in a new issue