# HG changeset patch # User Luis Figueira # Date 1294852257 0 # Node ID 66c73df314faefd6f416b4274a6dc72de350a7aa # Parent 3e75f003034a5cc411c6bf229b9dfd1fd9888758# Parent b0086cb55640f8f471dd6ca20cc2f09e26be751d Merge my two branches diff -r b0086cb55640 -r 66c73df314fa app/helpers/application_helper.rb --- a/app/helpers/application_helper.rb Fri Dec 17 17:24:24 2010 +0000 +++ b/app/helpers/application_helper.rb Wed Jan 12 17:10:57 2011 +0000 @@ -381,21 +381,28 @@ def page_header_title if @project.nil? || @project.new_record? - h(Setting.app_title) + a = [h(Setting.app_title), ''] + else + pname = [] b = [] ancestors = (@project.root? ? [] : @project.ancestors.visible) if ancestors.any? root = ancestors.shift b << link_to_project(root, {:jump => current_menu_item}, :class => 'root') if ancestors.size > 2 - b << '…' + b << '…' ancestors = ancestors[-2, 2] end b += ancestors.collect {|p| link_to_project(p, {:jump => current_menu_item}, :class => 'ancestor') } + b = b.join(' » ') + b << (' »') end - b << h(@project) - b.join(' » ') + + pname << h(@project) + + a = [pname, b] + end end diff -r b0086cb55640 -r 66c73df314fa app/views/layouts/base.rhtml --- a/app/views/layouts/base.rhtml Fri Dec 17 17:24:24 2010 +0000 +++ b/app/views/layouts/base.rhtml Wed Jan 12 17:10:57 2011 +0000 @@ -32,17 +32,32 @@ <%= tag('div', {:id => 'header', :class => (display_main_menu?(@project) ? 'header-project' : 'header-general')}, true) %> -