adjust dashboard templates style

This commit is contained in:
Alex Turchyn
2023-06-28 00:22:34 +03:00
parent 897df83633
commit 9c9c1ad6f0
14 changed files with 166 additions and 150 deletions
+3 -1
View File
@@ -6,6 +6,8 @@ class DashboardController < ApplicationController
def index
return render 'pages/landing' unless signed_in?
@pagy, @templates = pagy(current_account.templates.active, items: 12)
templates = current_account.templates.active.preload(:author).order(id: :desc)
@pagy, @templates = pagy(templates, items: 12)
end
end