personal-book/app/controllers/desktop/personal_books_controller.bak

23 lines
390 B
Plaintext

class Desktop::PersonalBooksController < DesktopAdminController
include Admin::PersonalBooksHelper
def menu
user = OrbitHelper.current_user
[
{
"title" => "List",
"layout" => "list"
},
{
"title" => "Add/Edit",
"layout" => "form",
"new_path" => "/admin/members/#{user.member_profile.to_param}/books/new"
}
]
end
def list
get_paper_list
end
end