# HG changeset patch # User luisf # Date 1294851978 0 # Node ID 3e75f003034a5cc411c6bf229b9dfd1fd9888758 # Parent d70a0b926135213073d9bffe553eb047d1af523e Bug #60: + the "jump to project" input box is now below the search box + the project ancestors are displayed in a separate line diff -r d70a0b926135 -r 3e75f003034a app/helpers/application_helper.rb --- a/app/helpers/application_helper.rb Fri Dec 17 13:02:30 2010 +0000 +++ b/app/helpers/application_helper.rb Wed Jan 12 17:06:18 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 d70a0b926135 -r 3e75f003034a app/views/layouts/base.rhtml --- a/app/views/layouts/base.rhtml Fri Dec 17 13:02:30 2010 +0000 +++ b/app/views/layouts/base.rhtml Wed Jan 12 17:06:18 2011 +0000 @@ -32,17 +32,32 @@ <%= tag('div', {:id => 'header', :class => (display_main_menu?(@project) ? 'header-project' : 'header-general')}, true) %> -