From 14aa779b508d49d94a60de0cc5118024bec58b9f Mon Sep 17 00:00:00 2001 From: Jan Schulz-Hofen Date: Thu, 4 Feb 2016 14:23:05 +0800 Subject: [PATCH 1/2] Add additional markup to page_header_title to enable better styling --- app/helpers/application_helper.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ff20064..dd47ac1 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 -- 2.4.0