app/views/layouts/weeler/base.html.erb in weeler-0.0.3 vs app/views/layouts/weeler/base.html.erb in weeler-0.0.4
- old
+ new
@@ -1,86 +1,40 @@
<!DOCTYPE html>
<html lang="en">
+ <head>
+ <title>Weeler</title>
+
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <%= stylesheet_link_tag "weeler/init", :media => "all" %>
+ <%= javascript_include_tag "weeler/init" %>
+
+ <%= csrf_meta_tags %>
+
+ <%= render "weeler/shared/flash" %>
- <head>
- <title>Weeler</title>
-
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-
- <%= stylesheet_link_tag "weeler", :media => "all" %>
- <%= javascript_include_tag "weeler" %>
-
- <%= csrf_meta_tags %>
-
- <% flash.each do |name, message| %>
- <script type="text/javascript">
- $(function(){
- $.pnotify({
- type: '<%= name %>', // 'notice', 'info', 'success', 'error'
- title: '<%= name %>',
- text: '<%= message %>',
- styling: 'bootstrap',
- shadow: false,
- animation: 'fade',
- closer: true,
- history: false,
- auto_display: true
- });
- });
- </script>
- <% end %>
- </head>
+ <%= yield :weeler_header %>
+ </head>
- <body>
- <div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
- <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="<%= weeler_root_path %>">Weeler</a>
- </div>
- <div class="collapse navbar-collapse">
- <ul class="nav navbar-nav">
- <li class="<%= 'active' if @current_menu_item == 'home' %>"><a href="<%= weeler_root_path %>">Home</a></li>
- <li class="<%= 'active' if @current_menu_item == 'about' %>"><a href="<%= weeler_about_path %>">About</a></li>
- </ul>
- </div><!-- /.nav-collapse -->
- </div><!-- /.container -->
- </div><!-- /.navbar -->
+ <body <%= yield :weeler_body_tag %> >
+ <%= render "weeler/shared/header_navbar" %>
- <div class="container">
+ <div class="container">
+ <div class="row row-offcanvas row-offcanvas-right">
- <div class="row row-offcanvas row-offcanvas-right">
- <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation">
- <div class="well sidebar-nav">
- <ul class="nav">
- <li>Configuration</li>
- <li class="<%= "active" %> "><a href="<%= weeler_translations_path %>">Translations</a></li>
- <li>Content</li>
-
- <% Weeler.menu_items.each do |item| %>
- <li><%= link_to item.to_s.capitalize, eval("weeler_#{item.to_s}_path") %></li>
- <% end %>
+ <%= render "weeler/shared/side_navbar" %>
- </ul>
- </div><!--/.well -->
- </div><!--/span-->
- <div class="col-xs-12 col-sm-9">
- <%= yield %>
- </div><!--/span-->
- </div><!--/row-->
+ <div class="col-xs-12 col-sm-9">
+ <%= yield %>
+ </div><!--/span-->
+ </div><!--/row-->
- <hr>
+ <hr>
- <footer>
- <p>© Weby 2013</p>
- </footer>
+ <%= render "weeler/shared/footer" %>
- </div><!--/.container-->
+ </div><!--/.container-->
- </body>
+ </body>
</html>
\ No newline at end of file