add pagination to templates/users/submissions

This commit is contained in:
Alex Turchyn
2023-06-24 01:01:54 +03:00
parent d53fa5613b
commit 419ede5b1d
10 changed files with 70 additions and 37 deletions
+1 -1
View File
@@ -6,6 +6,6 @@ class DashboardController < ApplicationController
def index
return render 'pages/landing' unless signed_in?
@templates = current_account.templates.active
@pagy, @templates = pagy(current_account.templates.active, items: 12)
end
end