portal-template/app/controllers/desktop/personal_experiences_contro...

23 lines
408 B
Plaintext
Raw Permalink Normal View History

2024-01-24 10:27:26 +00:00
class Desktop::PersonalExperiencesController < DesktopAdminController
include Admin::PersonalExperiencesHelper
def menu
user = OrbitHelper.current_user
[
{
"title" => "List",
"layout" => "list"
},
{
"title" => "Add/Edit",
"layout" => "form",
"new_path" => "/admin/members/#{user.member_profile.to_param}/experiences/new"
}
]
end
def list
get_paper_list
end
end