add wiki parent page action

This commit is contained in:
EricTYL 2019-11-28 16:43:43 +08:00
parent 14fa1cc534
commit 347000d139
1 changed files with 7 additions and 0 deletions

View File

@ -57,6 +57,13 @@ class Admin::PageContentsController < OrbitAdminController
render :json => {"success" => true}.to_json render :json => {"success" => true}.to_json
end end
def wiki_parent
parent_page_id = params[:id]
@wiki_parent_page = Page.where(:id => parent_page_id).first
@table_fields = ["page_content.id", :name,:version,:update_at,:last_modified, :category]
@categories = @module_app.categories.enabled.authorized(current_user).collect{|c| [c.title, c.id]}
end
private private
def update_params def update_params