leather 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/leather/_navbar.html.haml +7 -6
- data/lib/leather/version.rb +1 -1
- data/templates/views/pages/ui_kit.html.haml +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f582b7ad6013b73321c0ad7afed274f6a298072
|
4
|
+
data.tar.gz: 5ebd06028b2d71620935e0aeb67ab328de0c87b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f5d3a1484f5b9f99f785cba371a23258192c06e3afb4436c87c27cbeea4eb333d0a9c6c109f3b152fea1fae17a5f07382583f9e5592ca7427dd81d5d5d671f5
|
7
|
+
data.tar.gz: b652a39d787362407ccc6cdfc482fa6f2f8fa491e8e409a3ac60e201e3e2fc64f21df0d2a787b5422c31b25da5bb5a8b9a3777312526052db5aad50438986b83
|
@@ -1,19 +1,20 @@
|
|
1
1
|
- container_mode = html_options[:container_mode]
|
2
2
|
- html_options[:container_mode] = nil
|
3
|
+
- id = SecureRandom.hex(10)
|
3
4
|
|
4
5
|
- case container_mode
|
5
6
|
- when :with
|
6
7
|
%nav.navbar{ class: html_options[:class] }
|
7
8
|
.container
|
8
9
|
.navbar-header
|
9
|
-
%button.navbar-toggle{data:{toggle:'collapse', target:
|
10
|
+
%button.navbar-toggle{ data: { toggle:'collapse', target:"#navbar-#{id}" }, type: 'button'}
|
10
11
|
%span.sr-only
|
11
12
|
Toggle navigation
|
12
13
|
%span.icon-bar
|
13
14
|
%span.icon-bar
|
14
15
|
%span.icon-bar
|
15
16
|
= link_to title, brand_link, :class => 'navbar-brand'
|
16
|
-
.collapse.navbar-collapse
|
17
|
+
.collapse.navbar-collapse{ id: "navbar-#{id}" }
|
17
18
|
= block
|
18
19
|
- when :in
|
19
20
|
.container
|
@@ -21,24 +22,24 @@
|
|
21
22
|
.column.col-md-12
|
22
23
|
%nav.navbar{ class: html_options[:class] }
|
23
24
|
.navbar-header
|
24
|
-
%button.navbar-toggle{data:{toggle:'collapse', target:
|
25
|
+
%button.navbar-toggle{ data: { toggle:'collapse', target:"#navbar-#{id}" }, type: 'button'}
|
25
26
|
%span.sr-only
|
26
27
|
Toggle navigation
|
27
28
|
%span.icon-bar
|
28
29
|
%span.icon-bar
|
29
30
|
%span.icon-bar
|
30
31
|
= link_to title, brand_link, :class => 'navbar-brand'
|
31
|
-
.collapse.navbar-collapse
|
32
|
+
.collapse.navbar-collapse{ id: "navbar-#{id}" }
|
32
33
|
= block
|
33
34
|
- else
|
34
35
|
%nav.navbar{ class: html_options[:class] }
|
35
36
|
.navbar-header
|
36
|
-
%button.navbar-toggle{data:{toggle:'collapse', target:
|
37
|
+
%button.navbar-toggle{ data: { toggle:'collapse', target:"#navbar-#{id}" }, type: 'button'}
|
37
38
|
%span.sr-only
|
38
39
|
Toggle navigation
|
39
40
|
%span.icon-bar
|
40
41
|
%span.icon-bar
|
41
42
|
%span.icon-bar
|
42
43
|
= link_to title, brand_link, :class => 'navbar-brand'
|
43
|
-
.collapse.navbar-collapse
|
44
|
+
.collapse.navbar-collapse{ id: "navbar-#{id}" }
|
44
45
|
= block
|
data/lib/leather/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
= navbar "Brand", root_url, container_mode: :with, class: "navbar-default" do
|
1
|
+
= navbar "Brand", root_url, container_mode: :with, class: "navbar-default navbar-static-top" do
|
2
2
|
= nav_list do
|
3
3
|
= nav_item 'Link', '#'
|
4
4
|
= nav_item 'Link', '#'
|
@@ -21,7 +21,7 @@
|
|
21
21
|
%li.divider
|
22
22
|
= nav_item 'Separated link', '#'
|
23
23
|
|
24
|
-
= navbar "Brand", root_url, container_mode: :with, class: "navbar-inverse" do
|
24
|
+
= navbar "Brand", root_url, container_mode: :with, class: "navbar-inverse navbar-static-top" do
|
25
25
|
= nav_list do
|
26
26
|
= nav_item 'Link', '#'
|
27
27
|
= nav_item 'Link', '#'
|