adjust dashboard templates style

This commit is contained in:
Alex Turchyn committed 2023-06-28 00:48:55 +03:00
1 parent 897df83633
commit 9c9c1ad6f0
14 files changed
+166 -150

No files matched your search

+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