Skip to content
Browse files

分隔符前后增加一个字符更符合原版bootstrap的效果

  • Loading branch information...
1 parent 491b812 commit 764eb31f38445844404863ca77598bde35497fad @wuwx wuwx committed Jan 20, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/bootstrap_helper/breadcrumb.rb
View
6 lib/bootstrap_helper/breadcrumb.rb
@@ -53,14 +53,14 @@ def render_breadcrumb
if i == (@breadcrumbs.length - 1)
breadcrumb_content = c
else
- breadcrumb_content = c + content_tag(:span, "/", :class => "divider")
+ breadcrumb_content = c + " " + content_tag(:span, "/", :class => "divider")
end
- crumb += content_tag(:li, breadcrumb_content ,:class => breadcrumb_class )
+ crumb += content_tag(:li, breadcrumb_content ,:class => breadcrumb_class ) + "\n"
end
return prefix + content_tag(:ul, crumb, :class => "breadcrumb menu clearfix")
end
end
end
-end
+end

0 comments on commit 764eb31

Please sign in to comment.
Something went wrong with that request. Please try again.