allow creating folders from content pages with modal

This commit is contained in:
drusepth 2023-01-09 15:33:41 -08:00
parent c40464ba1d
commit c50aed74a9
2 changed files with 530 additions and 521 deletions

View File

@ -56,9 +56,9 @@ class ContentController < ApplicationController
@content = @content.sort_by {|x| [x.favorite? ? 0 : 1, x.name] }
@folders = current_user
.folders
.where(context: @content_type_name, parent_folder_id: nil)
.order('title ASC')
.folders
.where(context: @content_type_name, parent_folder_id: nil)
.order('title ASC')
@questioned_content = @content.sample
@attribute_field_to_question = SerendipitousService.question_for(@questioned_content)

File diff suppressed because it is too large Load Diff