diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-03-19 09:12:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-03-19 09:12:31 +0000 |
commit | 93eda89d7fbe0daac35a3c2613bf68b4ebce482f (patch) | |
tree | 93800e4617ab3c5670b69126b4b98edb4b9d0c61 | |
parent | a0a7e9d00179524b4c6242e638ced5e3674accd3 (diff) | |
download | redmine-93eda89d7fbe0daac35a3c2613bf68b4ebce482f.tar.gz redmine-93eda89d7fbe0daac35a3c2613bf68b4ebce482f.zip |
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
-rw-r--r-- | app/helpers/application_helper.rb | 9 |
1 files changed, 7 insertions, 2 deletions
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 |