Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't insert divider to breadcrumb items #42

Open
wants to merge 1 commit into from

1 participant

Takuya Matsuyama
Takuya Matsuyama

Bootstrap v3 inserts divider automatically so it's unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 16, 2014
  1. Takuya Matsuyama
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/bootstrap_helper/breadcrumb.rb
6 lib/bootstrap_helper/breadcrumb.rb
View
@@ -50,11 +50,7 @@ def render_breadcrumb
breadcrumb_class << "first" if i == 0
breadcrumb_class << "last active" if i == (@breadcrumbs.length - 1)
- if i == (@breadcrumbs.length - 1)
- breadcrumb_content = c
- else
- breadcrumb_content = c + " " + content_tag(:span, "/", :class => "divider")
- end
+ breadcrumb_content = c
crumb += content_tag(:li, breadcrumb_content ,:class => breadcrumb_class ) + "\n"
end
Something went wrong with that request. Please try again.