e9_tags 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -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(resource.tag_list_on(context), highlighted_tag)
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
@@ -1,3 +1,3 @@
1
1
  module E9Tags
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
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.12
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-05-26 00:00:00 -04:00
13
+ date: 2011-07-20 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency