Created
July 19, 2012 16:21
-
-
Save emfeha/3145055 to your computer and use it in GitHub Desktop.
application.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if controller.controller_path.starts_with?('candidate/') or controller.controller_path.starts_with?('company/') or controller.controller_path.starts_with?('company_admin/') | |
!!! 5 | |
-ie_html :class => 'no-js' do | |
%head | |
= render :partial => 'layouts/head' | |
= stylesheet_link_tag 'compiled/style', :media => 'all' | |
= stylesheet_link_tag 'compiled/handheld', :media => 'handheld' | |
= stylesheet_link_tag 'vendor/jquery-ui' | |
= stylesheet_link_tag 'vendor/jquery.ui.selectmenu' | |
= stylesheet_link_tag "/stylesheets/jquery-ui-1.8.18.custom.css" | |
= yield :stylesheets | |
= render 'layouts/custom_color_css' | |
= google_analytics_js | |
= render :partial => 'layouts/policy' | |
%body{ :lang => 'en', :class => "#{controller.controller_name}" } | |
#container | |
%header#header | |
- if controller.controller_path.starts_with?('candidate/') | |
= render :partial => 'candidate/shared/header' | |
- elsif controller.controller_path.starts_with?('company/') | |
= render :partial => 'company/shared/header' | |
- elsif controller.controller_path.starts_with?('company_admin/') | |
= render :partial => 'company_admin/shared/header' | |
- else | |
= render :partial => 'layouts/header' | |
= render :partial => 'layouts/flashes' | |
#wrap | |
= yield | |
%footer#footer | |
= render :partial => 'layouts/footer' | |
#bigSpinner.hide | |
= image_tag('/images/spinners/spinner_big.gif') | |
-# Javascript at the bottom for fast page loading | |
= render :partial => 'layouts/javascripts' | |
- else | |
!!! 5 | |
%head | |
= render :partial => 'layouts/headNew' | |
%body{ :lang => 'en', :class => "container_12 #{controller.controller_name}" } | |
#content | |
= yield | |
/= render :partial => 'layouts/footerNew' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment