From: Jean-Philippe Lang Date: Sat, 19 Mar 2016 09:12:31 +0000 (+0000) Subject: Add additional markup to page_header_title to enable better styling (#21947). X-Git-Tag: 3.3.0~189 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93eda89d7fbe0daac35a3c2613bf68b4ebce482f;p=redmine.git Add additional markup to page_header_title to enable better styling (#21947). Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15256 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f4ce316d1..7ad6caec9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -494,8 +494,13 @@ module ApplicationHelper end b += ancestors.collect {|p| link_to_project(p, {:jump => current_menu_item}, :class => 'ancestor') } end - b << h(@project) - b.join(" \xc2\xbb ").html_safe + b << content_tag(:span, h(@project), class: 'current-project') + if b.size > 1 + separator = content_tag(:span, ' » '.html_safe, class: 'separator') + path = safe_join(b[0..-2], separator) + separator + b = [content_tag(:span, path.html_safe, class: 'breadcrumbs'), b[-1]] + end + safe_join b end end