e9_tags 0.0.12 → 0.0.13
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/lib/e9_tags/helper.rb +5 -2
- data/lib/e9_tags/version.rb +1 -1
- metadata +2 -2
data/lib/e9_tags/helper.rb
CHANGED
|
@@ -34,10 +34,13 @@ module E9Tags
|
|
|
34
34
|
content_tag(:div, :class => 'tag-lists') do
|
|
35
35
|
''.html_safe.tap do |html|
|
|
36
36
|
resource.tagging_contexts(options).each do |context|
|
|
37
|
+
tags = resource.tag_list_on(context)
|
|
38
|
+
|
|
39
|
+
next if tags.blank?
|
|
40
|
+
|
|
37
41
|
str = ''.html_safe
|
|
38
42
|
str.safe_concat content_tag(:div, "#{humanize_context(E9Tags.unescape_context(context))}:", :class => 'heading')
|
|
39
|
-
str.safe_concat _tag_list(
|
|
40
|
-
|
|
43
|
+
str.safe_concat _tag_list(tags, highlighted_tag)
|
|
41
44
|
html.safe_concat content_tag(:div, str.html_safe, :class => 'tag-context-list')
|
|
42
45
|
end
|
|
43
46
|
end
|
data/lib/e9_tags/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: e9_tags
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.0.
|
|
5
|
+
version: 0.0.13
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Travis Cox
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-
|
|
13
|
+
date: 2011-07-20 00:00:00 -04:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|