Permalink
Browse files

Surrounded html_list format with <nav> element and updated inner crum…

…b_string to be html_safe by default
  • Loading branch information...
haxorize committed Feb 20, 2012
1 parent 38095db commit d79ef71f4742d7bf2da56f3804df0bba637ee214
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/crummy/standard_renderer.rb
@@ -50,7 +50,7 @@ def render_crumbs(crumbs, options = {})
crumb_string = crumbs.collect do |crumb|
crumb_to_html_list(crumb, options[:links], options[:li_class], options[:active_li_class], options[:first_class], options[:last_class], (crumb == crumbs.first), (crumb == crumbs.last), options[:separator])
end * ''
- crumb_string = content_tag(:ul, crumb_string, :class => options[:ul_class], :id => options[:ul_id])
+ crumb_string = content_tag(:nav, content_tag(:ul, crumb_string.html_safe, :class => options[:ul_class], :id => options[:ul_id]))
crumb_string
when :xml
crumbs.collect do |crumb|

0 comments on commit d79ef71

Please sign in to comment.