app/views/layouts/contents.html.erb in common-content-0.0.4 vs app/views/layouts/contents.html.erb in common-content-0.0.5
- old
+ new
@@ -1,64 +1,46 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title><%= content_for?(:title) ? yield(:title) : "Common Content" %></title>
- <%= csrf_meta_tags %>
-
- <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
- <![endif]-->
-
- <%= stylesheet_link_tag "contents", :media => "all" %>
-
- <link href="images/favicon.ico" rel="shortcut icon">
- <link href="images/apple-touch-icon.png" rel="apple-touch-icon">
- <link href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72">
- <link href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114">
- </head>
- <body>
-
- <div class="navbar navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container-fluid">
- <a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- <a class="brand" href="#">Common Content</a>
- <div class="container-fluid nav-collapse">
- <ul class="nav">
- <li><%= link_to "Contents", "/contents" %></li>
- <li><%= link_to "Admin", "/admin" %></li>
- <li><%= content_for?(:breadcrumb) ? yield(:breadcrumb) : '' %></li>
- </ul>
- </div><!--/.nav-collapse -->
- </div>
- </div>
- </div>
-
- <div class="container-fluid">
- <div class="row-fluid">
- <div class="span12">
- <%= yield %>
- </div>
- </div><!--/row-->
-
- <footer>
- <p>© 2012</p>
- <h6 style="font-size:8px">view_paths = <%= controller.view_paths.entries %></h6>
- <h6 style="font-size:8px">ancestry = <%= @content.try(:ancestry) %></h6>
- </footer>
-
- </div> <!-- /container -->
-
- <!-- Javascripts
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <%= javascript_include_tag "application" %>
-
- </body>
-</html>
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title><%= content_for?(:title) ? yield(:title) : "Common Content" %></title>
+ <%= csrf_meta_tags %>
+
+ <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
+ <!--[if lt IE 9]>
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
+ <![endif]-->
+
+ <%= stylesheet_link_tag "contents", :media => "all" %>
+
+ <link href="images/favicon.ico" rel="shortcut icon">
+ <link href="images/apple-touch-icon.png" rel="apple-touch-icon">
+ <link href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72">
+ <link href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114">
+ </head>
+ <body>
+
+ <%= render partial: 'navigation' %>
+
+ <div class="container-fluid">
+ <div class="row-fluid">
+ <div class="span12">
+ <%= yield %>
+ </div>
+ </div><!--/row-->
+
+ <footer>
+ <p>© 2012</p>
+ <h6 style="font-size:8px">view_paths = <%= controller.view_paths.entries %></h6>
+ <h6 style="font-size:8px">ancestry = <%= @content.try(:ancestry) %></h6>
+ </footer>
+
+ </div> <!-- /container -->
+
+ <!-- Javascripts
+ ================================================== -->
+ <!-- Placed at the end of the document so the pages load faster -->
+ <%= javascript_include_tag "application" %>
+
+ </body>
+</html>