21
1
Fork 0
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:
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 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

View file

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