[breadcrumb] show last 3 elements, hide first project

pull/41/head
Romano Licker 13 years ago
parent 23a7a95b81
commit 4d87d9a45e
  1. 3
      app/helpers/application_helper.rb

@ -426,10 +426,9 @@ module ApplicationHelper
elements = args.flatten
cutme_elements = []
breadcrumb_elements = [content_tag(:li, elements.shift.to_s, :style => 'list-style-image:none;')]
breadcrumb_elements << content_tag(:li, elements.shift.to_s) if elements.first
if elements.size > 2
normal_elements = elements.pop(2)
normal_elements = elements.pop(3)
cutme_elements = elements
else
normal_elements = elements

Loading…
Cancel
Save