mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
allow creating folders from content pages with modal
This commit is contained in:
parent
c40464ba1d
commit
c50aed74a9
@ -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
Loading…
Reference in New Issue
Block a user