Added pagination to checks.

This commit is contained in:
Colin Darie 2018-07-03 19:46:15 +02:00
parent 3ef8e6322a
commit 6687c3d341
No known key found for this signature in database
GPG Key ID: 4FB865FDBCA4BCC4
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -30,3 +30,5 @@
</tbody>
</table>
</div>
<%= paginate @checks %>