Changes for orbit bar, login

This commit is contained in:
Christophe Vilayphiou committed 2012-02-19 16:33:22 +08:00
1 parent 0b71714d44
commit 44a346ffe9
34 files changed
+724 -648

No files matched your search

+9 -1
View File
@@ -3,6 +3,8 @@ class ApplicationController < ActionController::Base
include ParserFrontEnd, ParserBackEnd
layout :layout_by_resource
helper :all
before_filter :set_locale, :set_site
@@ -104,6 +106,12 @@ class ApplicationController < ActionController::Base
Item.first(:conditions => {:parent_id => nil})
end
def layout_by_resource
if devise_controller?
"devise"
else
"application"
end
end
end