mirror of
https://github.com/docusealco/docuseal
synced 2026-11-10 07:42:32 -05:00
add folders structure
This commit is contained in:
1 parent
f8712a9da9
commit
380f553a17
30 files changed
+405
-56
No files matched your search
@@ -4,7 +4,7 @@ class TemplatesArchivedController < ApplicationController
|
||||
load_and_authorize_resource :template, parent: false
|
||||
|
||||
def index
|
||||
@templates = @templates.where.not(deleted_at: nil).preload(:author).order(id: :desc)
|
||||
@templates = @templates.where.not(deleted_at: nil).preload(:author, :folder).order(id: :desc)
|
||||
@templates = Templates.search(@templates, params[:q])
|
||||
|
||||
@pagy, @templates = pagy(@templates, items: 12)
|
||||
|
||||
Reference in new issue
Block a user