app/views/layouts/application.html.erb in home_page-0.0.3 vs app/views/layouts/application.html.erb in home_page-0.0.4
- old
+ new
@@ -1,45 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title><%= (yield(:title).blank? ? '' : yield(:title) + ' - ') + t('general.site.title') %></title>
- <%= stylesheet_link_tag 'home_page/application', media: 'all' %>
- <%= csrf_meta_tags %>
- <link href="images/apple-touch-icon-144x144.png" rel="apple-touch-icon-precomposed" sizes="144x144"/>
- <link href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon-precomposed" sizes="114x114"/>
- <link href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon-precomposed" sizes="72x72"/>
- <link href="images/apple-touch-icon.png" rel="apple-touch-icon-precomposed"/>
+ <%= render partial: 'layouts/shared/head' %>
</head>
<body>
- <div class="navbar navbar-inverse navbar-fixed-top">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="#"><%= t('general.site.title') %></a>
- </div>
-
- <%= render_navigation context: :main, expand_all: false, renderer: :bootstrap %>
- </div>
- </div>
+ <%= render partial: 'layouts/shared/navigation' %>
<div class="container">
- <div id="flash">
- <%= bootstrap_flash_raw %>
- </div>
-
+ <%= render partial: 'layouts/shared/flash' %>
+
<div class="content">
<% if content_for?(:title) %>
<div class="row">
<div class="col-md-12">
<div class="page-header">
+ <% if @show_breadcrumbs %>
+ <%= raw breadcrumbs %><br/>
+ <% end %>
+
<h2 id="title"><%= yield :title %></h2>
</div>
</div>
</div>
<% end %>
@@ -49,8 +29,8 @@
</div>
</div>
</div>
</div>
- <%= javascript_include_tag 'home_page/application' %>
+ <%= render partial: 'layouts/shared/foot' %>
</body>
</html>
\ No newline at end of file