Side bar for dashboard

This commit is contained in:
chris committed 2013-05-02 11:35:48 +08:00
1 parent 67bb08c338
commit f9fda13879
17 files changed
+262 -550

No files matched your search

+4 -1
View File
@@ -48,6 +48,7 @@ module OrbitApp
@active_for_controllers = []
@active_for_object_auth = []
@active_for_app_auth = []
@active_for_tag = []
@head_link = ""
@app_base_path = ''
@module_app_key = key
@@ -147,6 +148,7 @@ module OrbitApp
@active_for_action = options[:active_for_action] || []
@active_for_object_auth = options[:active_for_object_auth] || []
@active_for_app_auth = options[:active_for_app_auth] || []
@active_for_tag = options[:active_for_tag] || []
@module_app_key = options[:module_app_key]
@get_module_app = options[:get_module_app]
end
@@ -177,7 +179,8 @@ module OrbitApp
for_action = @active_for_action.blank? ? false : active_for_action?
for_app_auth = @active_for_app_auth.blank? ? false : active_for_app_auth?
for_ob_auth = @active_for_object_auth.blank? ? false : active_for_ob_auths?
for_action || for_app_auth || for_ob_auth
for_tag = @active_for_tag.blank? ? false : active_for_tag?
for_action || for_app_auth || for_ob_auth || for_tag
end
def active_for_action?