diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-12 09:04:22 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-12 09:04:22 +0100 |
commit | 9fcc28d42850eb7aa891b701721f803ebb0a3d55 (patch) | |
tree | 8d5d2fb960d06b9324d22819d1261dfbf337eac6 /app/helpers | |
parent | ab6c89356a4b24591d182942ddc7567cf80017fe (diff) | |
download | gitlab-ce-9fcc28d42850eb7aa891b701721f803ebb0a3d55.tar.gz |
moved declaration of `breadcrumb_title` into `page_title` method
`breadcrumb_title` is then overriden when needed
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/page_layout_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/page_layout_helper.rb b/app/helpers/page_layout_helper.rb index 3286a92a8a7..c9f5166d0a4 100644 --- a/app/helpers/page_layout_helper.rb +++ b/app/helpers/page_layout_helper.rb @@ -4,6 +4,10 @@ module PageLayoutHelper @page_title.push(*titles.compact) if titles.any? + if show_new_nav? && titles.any? && !defined?(@breadcrumb_title) + @breadcrumb_title = @page_title.first + end + # Segments are seperated by middot @page_title.join(" \u00b7 ") end |