Created
November 5, 2012 03:12
-
-
Save illnino/4015121 to your computer and use it in GitHub Desktop.
Rails HTML5 Boilerplate
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
<% flash.each do |name, msg| %> | |
<% if msg.is_a?(String) %> | |
<div class="alert alert-<%= name == :notice ? "success" : "error" %>"> | |
<a class="close" data-dismiss="alert">×</a> | |
<%= content_tag :div, msg, :id => "flash_#{name}" %> | |
</div> | |
<% end %> | |
<% end %> |
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
<!-- http://railsapps.github.com/tutorial-rails-bootstrap-devise-cancan.html --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title><%= content_for?(:title) ? yield(:title) : "App_Name" %></title> | |
<meta name="description" content="<%= content_for?(:description) ? yield(:description) : "App_Name" %>"> | |
<%= stylesheet_link_tag "application", :media => "all" %> | |
<%= javascript_include_tag "application" %> | |
<%= csrf_meta_tags %> | |
<%= yield(:head) %> | |
</head> | |
<body> | |
<header class="navbar navbar-fixed-top"> | |
<nav class="navbar-inner"> | |
<div class="container"> | |
<%= render 'layouts/navigation' %> | |
</div> | |
</nav> | |
</header> | |
<div id="main" role="main"> | |
<div class="container"> | |
<div class="content"> | |
<div class="row"> | |
<div class="span12"> | |
<%= render 'layouts/messages' %> | |
<%= yield %> | |
</div> | |
</div> | |
<footer> | |
</footer> | |
</div> | |
</div> <!--! end of .container --> | |
</div> <!--! end of #main --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment