egov_utils 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/egov_utils/application_helper.rb +16 -0
- data/lib/egov_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24525d1029e91af7fc9572c65ee4b6b51755799af87f23610d49a3bf9322c7fa
|
4
|
+
data.tar.gz: 645c036dce515913528ac5f9c506780d3530865434b08ef435e31ce9c20b0402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3db00d7ec1f75236163dc126e55fcc6c4d684251c971ead1acc81e105483bb2f80c02b2990eba2a4596928202e92554ec5cbce8601d8812f9d617ee1c08d0f5a
|
7
|
+
data.tar.gz: 8a57375896c30d624ce3547e4d42aeb9379fc46a60e9587b22663389e774c4e82e548f9dec048f97d3006d8e530b892d13283529df8b79f36009f63308fb250a
|
@@ -37,5 +37,21 @@ module EgovUtils
|
|
37
37
|
END_JS
|
38
38
|
end
|
39
39
|
|
40
|
+
def egov_breadcrumbs
|
41
|
+
if block_given?
|
42
|
+
links = []
|
43
|
+
yield(links)
|
44
|
+
end
|
45
|
+
content_tag('nav', 'aria-label' => 'breadcrumb') do
|
46
|
+
content_tag('ol', class: 'breadcrumb') do
|
47
|
+
s = links[0..-2].collect do |link|
|
48
|
+
content_tag(:li, link, class: 'breadcrumb-item' )
|
49
|
+
end.join(' ').html_safe
|
50
|
+
s << content_tag(:li, links.last, class: 'breadcrumb-item active')
|
51
|
+
s
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
40
56
|
end
|
41
57
|
end
|
data/lib/egov_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egov_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|