emmet_layout 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d471143d28b5b5dbc69ef3f054d1165ceffa00c6
4
- data.tar.gz: 8813fc237bc5634129c014da669032e71c543ab8
3
+ metadata.gz: a28cfeec57c8ae8a653f7a7f5a16c294d6e6c711
4
+ data.tar.gz: 5480a43e4e81779f37f064573de3cdc8fd6a055b
5
5
  SHA512:
6
- metadata.gz: 6f011a6b8b2b3d64d25e5e3c2301fca65c0ab8b7ee6b2901a5e288a7ad765b456f7e21cd498dbf17effa0c77ccf212c3d967aa3d57b302b7655e5aa8c60e0643
7
- data.tar.gz: cd196814a35d4229304098e402a0c5649d664494046741d8b43542204718d8ca3959f6e9b45f2ababb46a8e1755070dfd55ac0bae941923a33eff75c2976a1f2
6
+ metadata.gz: 00b3dad3fabc96a3fe50763f17db27b3e05a61311cc3fca67fac3d68a96ffc59c373a6b1cdb93006d367cd7e383ca0708ba521d19fd8f2dba7f55aff2f3fbbcf
7
+ data.tar.gz: ca287d376962ef44b09ae5c3bb9ca7933109d198fe849f8d49ddace7dcdc7e97a47fdca7051683b54cbb9e6b64350897bb5f000b8f82040dbd17b5ba26bf5830
@@ -1,37 +1,48 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <title>Emmet layout</title>
4
+ <title><%= yield(:page_title) or 'Emmet layout' %></title>
5
+
5
6
  <%= stylesheet_link_tag 'emmet/layout/application', media: 'all' %>
6
7
  <%= javascript_include_tag 'emmet/layout/application' %>
7
8
  <%= csrf_meta_tags %>
8
9
  </head>
9
10
  <body>
10
11
 
11
- <nav class="navbar navbar-inverse navbar-fixed-top">
12
- <div class="container">
13
- <div class="navbar-header">
14
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
15
- <span class="sr-only">Toggle navigation</span>
16
- <span class="icon-bar"></span>
17
- <span class="icon-bar"></span>
18
- <span class="icon-bar"></span>
19
- </button>
20
- <a class="navbar-brand" href="#">Emmet layout</a>
12
+ <% if content_for?(:menu_navbar) %>
13
+ <%= yield(:menu_navbar) %>
14
+ <% else %>
15
+ <nav class="navbar navbar-inverse navbar-fixed-top">
16
+ <div class="container">
17
+ <div class="navbar-header">
18
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
19
+ <span class="sr-only">Toggle navigation</span>
20
+ <span class="icon-bar"></span>
21
+ <span class="icon-bar"></span>
22
+ <span class="icon-bar"></span>
23
+ </button>
24
+ <a class="navbar-brand" href="#"><%= yield(:page_title) or 'Emmet layout' %></a>
25
+ </div>
26
+ <div id="navbar" class="collapse navbar-collapse">
27
+ <ul class="nav navbar-nav">
28
+ <li class="active"><a href="#">Home</a></li>
29
+ <li><a href="#about">About</a></li>
30
+ <li><a href="#contact">Contact</a></li>
31
+ </ul>
32
+ </div><!--/.nav-collapse -->
21
33
  </div>
22
- <div id="navbar" class="collapse navbar-collapse">
23
- <ul class="nav navbar-nav">
24
- <li class="active"><a href="#">Home</a></li>
25
- <li><a href="#about">About</a></li>
26
- <li><a href="#contact">Contact</a></li>
27
- </ul>
28
- </div><!--/.nav-collapse -->
29
- </div>
30
- </nav>
34
+ </nav>
35
+ <% end %>
36
+
37
+ <%= yield %>
31
38
 
32
- <div class="container">
33
- <%= yield %>
34
- </div><!-- /.container -->
39
+ <% if content_for?(:footer) %>
40
+ <%= yield(:footer) %>
41
+ <% else %>
42
+ <footer class="container text-right">
43
+ Emmet Layout Footer
44
+ </footer>
45
+ <% end %>
35
46
 
36
47
  </body>
37
48
  </html>
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Emmet
3
3
  module Layout
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emmet_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walmir Neto
@@ -64,6 +64,26 @@ dependencies:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 0.12.2
67
+ - !ruby/object:Gem::Dependency
68
+ name: sqlite3
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '1.3'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 1.3.11
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '1.3'
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 1.3.11
67
87
  - !ruby/object:Gem::Dependency
68
88
  name: rubocop
69
89
  requirement: !ruby/object:Gem::Requirement