lib/builders/html_builder.rb in navigasmic-0.3.0 vs lib/builders/html_builder.rb in navigasmic-0.3.1

- old
+ new

@@ -47,10 +47,10 @@ options[:html][:class] = template.add_class(options[:html][:class], @@classnames[:disabled]) if item.disabled? options[:html][:class] = template.add_class(options[:html][:class], @@classnames[:highlighted]) if item.highlighted?(template.request.path, template.params) label = label_for_item(label) - label = template.link_to(label, item.link) unless item.link.empty? + label = template.link_to(label, item.link) unless item.link.empty? || item.disabled? template.content_tag(@@item_tag, label + buffer, options.delete(:html)) end def label_for_group(label) \ No newline at end of file