lib/builders/html_builder.rb in navigasmic-0.3.2 vs lib/builders/html_builder.rb in navigasmic-0.3.3
- 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? || item.disabled?
+ label = template.link_to(label, item.link, options.delete(:link_html)) 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