personal-research/app/controllers/desktop/personal_researches_control...

23 lines
404 B
Plaintext
Raw Normal View History

2014-12-05 08:19:27 +00:00
class Desktop::PersonalResearchesController < DesktopAdminController
include Admin::PersonalResearchesHelper
def menu
user = OrbitHelper.current_user
[
{
"title" => "List",
"layout" => "list"
},
{
"title" => "Add/Edit",
"layout" => "form",
"new_path" => "/admin/members/#{user.member_profile.to_param}/researchs/new"
}
]
end
def list
get_paper_list
end
end