!!! %html{:lang => "en"} %head %meta{:charset => "utf-8"} %title %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"} %meta{:content => "", :name => "description"} %meta{:content => "", :name => "author"} = stylesheet_link_tag "protected/application" %body{ :class => "#{Rails.env} #{params[:controller]} #{params[:action]}" } .navbar.navbar-fixed-top .navbar-inner .container-fluid %a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"} %span.icon-bar %span.icon-bar %span.icon-bar %a.brand{:href => "#"} Project name .nav-collapse - if current_user %ul.nav %li= link_to "Admin", admin_url %li= link_to "Users", ['admin','users'] %li= link_to "Live Site", root_url %ul.nav.right %li= link_to "Account Settings", ['edit','admin',current_user] %li= link_to 'Sign Out', destroy_user_session_url .container-fluid .row-fluid - flash.each do |name, msg| %div{:class => "alert alert-#{name == :notice ? "success" : "error"}"} %a.close{"data-dismiss" => "alert"} × = content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) = yield = javascript_include_tag "protected/application"