personal-honor/app/controllers/desktop/personal_honors_controller.bak

23 lines
393 B
Plaintext
Raw Normal View History

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