lib/xebec/nav_bar_renderer.rb in xebec-2.6.1 vs lib/xebec/nav_bar_renderer.rb in xebec-2.7.0

- old
+ new

@@ -92,13 +92,13 @@ href = href_for_nav_item item is_current = is_current_nav_item?(item, href) klass = '' << item.name.to_s klass << " #{Xebec.currently_selected_nav_item_class}" if is_current helper.content_tag(*list_item_tag(item, klass, text, href, is_current)) do - if is_current + if is_current && !bar.current_is_link helper.content_tag :span, text else - helper.link_to text, href + helper.link_to text, href, item.html_options end end end # @param [Xebec::NavItem] item the navigation item