Created
July 15, 2013 09:51
-
-
Save xuncheng/5998755 to your computer and use it in GitHub Desktop.
Rails default layout using bootstrap
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
!!! | |
%html | |
%head | |
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"} | |
%title= content_for?(:title) ? yield(:title) : "Rails Bootstrap" | |
%meta{:content => content_for?(:description) ? yield(:description) : "Rails Bootstrap", :name => "description"} | |
= stylesheet_link_tag "application", :media => "all" | |
= javascript_include_tag "application" | |
= csrf_meta_tags | |
%body | |
%header.navbar.navbar-fixed-top | |
%nav.navbar-inner | |
.container | |
= render 'layouts/navigation' | |
%main{:role => "main"} | |
.container | |
.content | |
.row | |
.span12 | |
= render 'layouts/messages' | |
= yield | |
%footer | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment