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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17e30077a4774b212c27b245031ccab24fa03dd32d2c94805ebac4207581664c
4
- data.tar.gz: 87295e5b9456958d12c7e781d9c34f918dba8a22a64efd4d3152071a350fc912
3
+ metadata.gz: 24525d1029e91af7fc9572c65ee4b6b51755799af87f23610d49a3bf9322c7fa
4
+ data.tar.gz: 645c036dce515913528ac5f9c506780d3530865434b08ef435e31ce9c20b0402
5
5
  SHA512:
6
- metadata.gz: 25eb09cfc576a81db2082290e54002c40652e2adfe5853d0dc263ae1195203109962ec7304aa34f1904d7409c9e30bb6a1d21a9acabdd0d5c8e16750593c5127
7
- data.tar.gz: c263e8556b37a913f939b88a59faf1ab34912bf59d6ef5f369f25bdbb08c1a04873ede2033494164c3a26b9287eff47312c38c69f68a702761858934f6e63b71
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
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.8'
3
3
  end
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.7
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-02 00:00:00.000000000 Z
11
+ date: 2018-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails