personal-diploma/app/controllers/desktop/personal_diplomas_controlle...

23 lines
399 B
Plaintext
Raw Normal View History

2014-12-04 07:39:43 +00:00
class Desktop::PersonalDiplomasController < DesktopAdminController
include Admin::PersonalDiplomasHelper
def menu
user = OrbitHelper.current_user
[
{
"title" => "List",
"layout" => "list"
},
{
"title" => "Add/Edit",
"layout" => "form",
"new_path" => "/admin/members/#{user.member_profile.to_param}/diplomas/new"
}
]
end
def list
get_paper_list
end
end