2012-10-30 09:10:59 +00:00
|
|
|
class OrbitBackendController < ApplicationController
|
2013-07-02 08:46:44 +00:00
|
|
|
include OrbitCategory::Categorizing
|
2013-08-19 10:54:35 +00:00
|
|
|
include OrbitCoreLib::Authorization
|
2014-02-13 08:13:54 +00:00
|
|
|
include OrbitCoreLib::PermissionUtility
|
2013-04-26 03:18:57 +00:00
|
|
|
include OrbitTag::Tagging
|
2012-03-16 03:09:44 +00:00
|
|
|
include AdminHelper
|
2012-08-23 08:05:14 +00:00
|
|
|
include ApplicationHelper
|
2013-06-04 02:53:31 +00:00
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
helper :default_index
|
|
|
|
|
|
|
|
layout "back_end"
|
2013-06-04 02:53:31 +00:00
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
def get_statuses
|
|
|
|
status = []
|
|
|
|
status << 'is_top'
|
|
|
|
status << 'is_hot'
|
|
|
|
status << 'is_hidden' unless is_guest?
|
2013-11-13 01:53:21 +00:00
|
|
|
if @module_app.is_approvable && (is_manager? || is_sub_manager?)
|
2013-07-16 03:41:22 +00:00
|
|
|
status << 'is_pending'
|
|
|
|
status << 'is_checked'
|
|
|
|
status << 'is_rejected'
|
|
|
|
end
|
2013-07-02 08:46:44 +00:00
|
|
|
status
|
|
|
|
end
|
2013-06-04 02:53:31 +00:00
|
|
|
end
|