Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #191 from oliverbarnes/master

Hide breadcrumb elements when there aren't any breadcrumbs to show
  • Loading branch information...
commit 5375a44fa12cff9cd5c5da33ba5eafcb0cb227fb 2 parents 4b10325 + 959e187
@seyhunak authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 app/views/twitter-bootstrap/_breadcrumbs.html.erb
View
20 app/views/twitter-bootstrap/_breadcrumbs.html.erb
@@ -1,14 +1,14 @@
+<% if @breadcrumbs %>
<ul class="breadcrumb">
<% separator = divider %>
- <% if @breadcrumbs %>
- <% @breadcrumbs[0..-2].each do |crumb| %>
- <li>
- <a href="<%= crumb[:url] %>"><%= crumb[:name] %></a>
- <span class="divider"><%= separator %></span>
- </li>
- <% end %>
- <li class="active">
- <a href="<%= @breadcrumbs.last[:url] %>"><%= @breadcrumbs.last[:name] %></a>
- </li>
+ <% @breadcrumbs[0..-2].each do |crumb| %>
+ <li>
+ <a href="<%= crumb[:url] %>"><%= crumb[:name] %></a>
+ <span class="divider"><%= separator %></span>
+ </li>
<% end %>
+ <li class="active">
+ <a href="<%= @breadcrumbs.last[:url] %>"><%= @breadcrumbs.last[:name] %></a>
+ </li>
</ul>
+<% end %>

0 comments on commit 5375a44

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