rails_breadcrumbs 0.5.3 → 0.5.4
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.
- data/README +1 -1
- data/changelog +1 -0
- data/lib/rails_breadcrumbs/view_additions.rb +3 -2
- data/rails_breadcrumbs.gemspec +1 -1
- metadata +4 -3
data/README
CHANGED
data/changelog
CHANGED
@@ -14,6 +14,7 @@ that bug was created for 1.0 version of the AntHill component, bug is feature re
|
|
14
14
|
|
15
15
|
Version 0.5
|
16
16
|
-----------
|
17
|
+
0.5 { Bug Report } [ RailsBreadcrumbs ] / X / Localize home_label
|
17
18
|
0.5 { Bug Report } [ RailsBreadcrumbs ] / X / Don't put separator for root
|
18
19
|
0.5 { Bug Report } [ RailsBreadcrumbs ] / X / Move separator out of link
|
19
20
|
0.5 { Bug Report } [ RailsBreadcrumbs ] / X / Changed item separator from '>' to ' >'
|
@@ -25,11 +25,12 @@ module RailsBreadcrumbs
|
|
25
25
|
def render_breadcrumbs(options = {})
|
26
26
|
output = ""
|
27
27
|
options = ::RailsBreadcrumbs.options.merge(options)
|
28
|
+
home = I18n.t(options[:locale_root] + options[:home_label], :default => options[:home_label])
|
28
29
|
|
29
30
|
# First item is home
|
30
31
|
if options[:include_home_icon]
|
31
32
|
output << content_tag(:li, {:class => "first_breadcrumb_item"}, false) do
|
32
|
-
link_to(image_tag("breadcrumbs/home.png", {:alt =>
|
33
|
+
link_to(image_tag("breadcrumbs/home.png", {:alt => home, :title => home}),options[:home_path]) +
|
33
34
|
(@breadcrumbs && @breadcrumbs.size() > 0 ? raw(options[:item_separator]) : "")
|
34
35
|
end
|
35
36
|
end
|
@@ -37,7 +38,7 @@ module RailsBreadcrumbs
|
|
37
38
|
# First item is home
|
38
39
|
if options[:include_home_label]
|
39
40
|
output << content_tag(:li, {:class => "first_breadcrumb_item"}, false) do
|
40
|
-
link_to( h(
|
41
|
+
link_to( h(home), options[:home_path]) +
|
41
42
|
(@breadcrumbs && @breadcrumbs.size() > 0 ? raw(options[:item_separator]) : "")
|
42
43
|
end
|
43
44
|
end
|
data/rails_breadcrumbs.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'date'
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = %q{rails_breadcrumbs}
|
4
|
-
s.version = "0.5.
|
4
|
+
s.version = "0.5.4"
|
5
5
|
s.date = Date.today.to_s
|
6
6
|
s.summary = %q{RailsBreadcrumbs is a gem that implements breadcrumbs.}
|
7
7
|
s.description = %q{RailsBreadcrumbs is a gem that implements breadcrumbs.}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_breadcrumbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-08-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: RailsBreadcrumbs is a gem that implements breadcrumbs.
|
15
15
|
email: developers@majoron.com
|
@@ -31,6 +31,7 @@ files:
|
|
31
31
|
- lib/rails_breadcrumbs/view_additions.rb
|
32
32
|
- lib/rails_breadcrumbs.rb
|
33
33
|
- MIT-LICENSE
|
34
|
+
- rails_breadcrumbs-0.5.4.gem
|
34
35
|
- rails_breadcrumbs.gemspec
|
35
36
|
- Rakefile
|
36
37
|
- README
|
@@ -67,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
68
|
version: '0'
|
68
69
|
requirements: []
|
69
70
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.8.
|
71
|
+
rubygems_version: 1.8.23
|
71
72
|
signing_key:
|
72
73
|
specification_version: 3
|
73
74
|
summary: RailsBreadcrumbs is a gem that implements breadcrumbs.
|