mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-03 01:10:50 +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
|
after_action :verify_policy_scoped, only: :index
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@checks = policy_scope(Check).order(:domain_expires_at)
|
@checks = policy_scope(Check).order(:domain_expires_at).page(params[:page])
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
|
|
@ -30,3 +30,5 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<%= paginate @checks %>
|
||||||
|
|
Loading…
Reference in a new issue