simple_navigation_bootstrap 1.1.0 → 1.1.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 779f3163dcc11ceeba437ddf6dc76cd545e28759587cbd85b5165b85fcbe1391
|
4
|
+
data.tar.gz: 56224bf0a3fbbcf232fb5c03c1c2b463bac12a8867b4e06c1c42b8a59d9e0dd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 824cad6eeffc0658507ec15903fff99fccb32af1850f61d892f3c2233286fff45af3aec9e5339a4747b1ce81eba96e9659b5aafbdb3e6e7716c89deb52a38778
|
7
|
+
data.tar.gz: 85cf790ac9112336583f72efca3181e3b160898486c619860dcc0eb0072c8e27f4ec4c66589205f0c7584e7a8dfd99faff6ef2e84f1d5e75cc980de1e9bb6845
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -11,7 +11,8 @@
|
|
11
11
|
This gem adds Bootstrap renderers for [Simple Navigation](https://github.com/codeplant/simple-navigation). For now, it is include renderers for:
|
12
12
|
|
13
13
|
* [Bootstrap 2 navigation](http://getbootstrap.com/2.3.2/components.html#navbar)
|
14
|
-
* [Bootstrap 3 navigation](
|
14
|
+
* [Bootstrap 3 navigation](https://getbootstrap.com/docs/3.3/components/#navbar)
|
15
|
+
* [Bootstrap 4 navigation](https://getbootstrap.com/docs/4.0/components/navbar/)
|
15
16
|
|
16
17
|
With these renderers you will be able create **any Bootstrap navigation elements**, such as: **submenu**, **navbar-text**, **divider**, **header**.
|
17
18
|
As well as add **icons** to menu elements, such as: Glyphicons, Font Awesome icons, even custom icons. Also you have **split** option for main menu containing submenu.
|
@@ -34,7 +34,7 @@ module SimpleNavigationBootstrap
|
|
34
34
|
|
35
35
|
|
36
36
|
def container_class(level)
|
37
|
-
remove_navigation_class = options.
|
37
|
+
remove_navigation_class = options.fetch(:remove_navigation_class) { false }
|
38
38
|
if level == 1
|
39
39
|
remove_navigation_class ? '' : ['nav', navigation_class].compact
|
40
40
|
else
|
@@ -14,11 +14,11 @@ module SimpleNavigationBootstrap
|
|
14
14
|
@bootstrap_version = bootstrap_version
|
15
15
|
|
16
16
|
@options = item.html_options
|
17
|
-
@navbar_text = options.
|
18
|
-
@divider = options.
|
19
|
-
@header = options.
|
20
|
-
@split = options.
|
21
|
-
@skip_caret = options.
|
17
|
+
@navbar_text = options.fetch(:navbar_text) { nil }
|
18
|
+
@divider = options.fetch(:divider) { false }
|
19
|
+
@header = options.fetch(:header) { false }
|
20
|
+
@split = options.fetch(:split) { false }
|
21
|
+
@skip_caret = options.fetch(:skip_caret) { false }
|
22
22
|
@link_options = @item.link_html_options || {}
|
23
23
|
end
|
24
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_navigation_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Shpak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simple-navigation
|