23 lines
408 B
Ruby
23 lines
408 B
Ruby
class Desktop::BooksController < DesktopAdminController
|
|
include Admin::BooksHelper
|
|
|
|
def menu
|
|
user = OrbitHelper.current_user
|
|
[
|
|
{
|
|
"title" => "List",
|
|
"layout" => "list"
|
|
},
|
|
{
|
|
"title" => "Add/Edit",
|
|
"layout" => "form",
|
|
"new_path" => "/#{I18n.locale.to_s}/admin/books/new?member_profile_id=#{user.member_profile_id.to_param}",
|
|
}
|
|
]
|
|
end
|
|
|
|
def list
|
|
get_paper_list
|
|
end
|
|
|
|
end |