!!! 5
%html
%head
%meta{ :content => "text/html;charset=UTF-8", "http-equiv" => "content-type" }
%meta{:name => 'description', :content => "#{yield :description}"}
= csrf_meta_tag
%title
#{yield :title}
= include_stylesheets :screen, :media => 'all'
/[if IE 7]
= include_stylesheets :ie, :media => 'screen, projection', :embed_images => false
/[if lt IE 9]
= include_javascripts :ie
%body
.container
%header
.login_container
- if !current_user.nil?
.login_name_container
Logged in as:
%span
= current_user.email
%span{:class => "login_links_container"}
- if !current_user.nil?
= link_to" Admin", users_url, :class =>"button_small"
= link_to "Logout", logout_path, :method => :delete, :class => "button_small"
- if flash[:notice] != nil
%p{:class => "flash_notice"}
= flash[:notice]
- elsif flash[:error] != nil
%p{:class => "flash_error"}
= flash[:error]
= yield
%footer
.container
.container{:class => "sub_footer"}
%p © #{Time.now.year}
= include_javascripts :workspace
:javascript
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
:javascript
try{
var pageTracker = _gat._getTracker("UA-");
pageTracker._trackPageview();
} catch(err) {}