wonder_navigation 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/wonder_navigation/menu_item.rb +2 -2
- data/lib/wonder_navigation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ccbeb8086d596d332843f980ed45de96f9b487f
|
4
|
+
data.tar.gz: 120137f6651aadb6b0b61605222515ff339c6f0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae5aef2589c4093c0d8860d572ab8c4977ebfa02908c7234b8755c91019da1820acbc6c474ecf16ab7cb41baca8ead16ee44f15d3532b07071cab4a143395f3f
|
7
|
+
data.tar.gz: 3b8bba0191d0616b1063ecb107636014dc4399ced55704a9a8257d48bd0042aff6fed68e29e060e6c89276a4d2cadcacf47a32b3264c481d2f27aa3068373bd1
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Rails Wonderful Navigation
|
2
2
|
|
3
3
|
[](https://codeclimate.com/github/douglaslise/wonder_navigation)
|
4
|
+
[](https://badge.fury.io/rb/wonder_navigation)
|
4
5
|
|
5
6
|
Describe your Rails' menus and breadcrumbs in a single place, with support for permissions, fixed and resource based labels.
|
6
7
|
|
@@ -37,11 +37,11 @@ module WonderNavigation
|
|
37
37
|
def resource(id, options = {}, &block)
|
38
38
|
new = show = nil
|
39
39
|
index = menu "#{id}_index", options do
|
40
|
-
new = menu "#{id}_new", "
|
40
|
+
new = menu "#{id}_new", options.fetch(:new_label, I18n.t("wonder_navigation.resource.new", default: "New")), visible: false
|
41
41
|
show = menu "#{id}_show" do
|
42
42
|
label {|obj| obj.to_s }
|
43
43
|
path {|obj| obj }
|
44
|
-
menu "#{id}_edit", "
|
44
|
+
menu "#{id}_edit", I18n.t("wonder_navigation.resource.edit", default: "Edit")
|
45
45
|
end
|
46
46
|
end
|
47
47
|
index.instance_exec(index, new, show, &block) if block_given?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wonder_navigation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas Lise
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|