Clean up application_helper.rb code
This commit is contained in:
parent
cbea0af290
commit
2048750029
|
@ -110,22 +110,6 @@ module ApplicationHelper
|
||||||
[projects, default_nav, project_nav].flatten.to_json
|
[projects, default_nav, project_nav].flatten.to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
def project_layout
|
|
||||||
layout == "project"
|
|
||||||
end
|
|
||||||
|
|
||||||
def admin_layout
|
|
||||||
layout == "admin"
|
|
||||||
end
|
|
||||||
|
|
||||||
def profile_layout
|
|
||||||
layout == "profile"
|
|
||||||
end
|
|
||||||
|
|
||||||
def help_layout
|
|
||||||
controller.controller_name == "help"
|
|
||||||
end
|
|
||||||
|
|
||||||
def ldap_enable?
|
def ldap_enable?
|
||||||
Devise.omniauth_providers.include?(:ldap)
|
Devise.omniauth_providers.include?(:ldap)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue