makandra-navy 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/navy/renderer.rb CHANGED
@@ -21,17 +21,17 @@ module Navy
21
21
 
22
22
  def render_navigation(navigation)
23
23
  name = @name || navigation.name
24
- div_tag(:id => "navy-#{name}-navigation", :class => 'navy-navigation') do
25
- html = ''.html_safe
26
- html << render_section_container(navigation, 1)
27
- @html_to_append.each do |append|
28
- html << append
29
- end
30
- html
24
+ html = ''.html_safe
25
+ html << render_section_container(navigation, 1)
26
+ @html_to_append.each do |append|
27
+ html << append
31
28
  end
29
+ klasses = []
30
+ klassey << 'navy-navigation'
31
+ klasses << 'navy-empty' if html.strip.blank?
32
+ content_tag(:div, html, :id => "navy-#{name}-navigation", :class => klasses.join(' '))
32
33
  end
33
34
 
34
-
35
35
  private
36
36
 
37
37
  def append(html)
data/lib/navy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Navy
4
- VERSION = "0.4.4"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makandra-navy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- - 4
10
- version: 0.4.4
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Kraze
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-11-23 00:00:00 +01:00
19
+ date: 2012-11-26 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements: []
92
92
 
93
93
  rubyforge_project: navy
94
- rubygems_version: 1.3.9.5
94
+ rubygems_version: 1.3.9.4
95
95
  signing_key:
96
96
  specification_version: 3
97
97
  summary: Comprehensive solution for multi-level horizontal navigation bars.