personal-project/app/controllers/desktop/personal_projects_controlle...

23 lines
399 B
Plaintext
Raw Permalink Normal View History

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