# HG changeset patch # User luisf # Date 1294851978 0 # Node ID 09910262eb0b1952b8944603a788bac10884aa84 # Parent 637d05516475012fde76c62209ac765bf81521ba 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 637d05516475 -r 09910262eb0b app/helpers/application_helper.rb --- a/app/helpers/application_helper.rb Wed Jan 19 15:46:17 2011 +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 637d05516475 -r 09910262eb0b app/views/layouts/base.rhtml --- a/app/views/layouts/base.rhtml Wed Jan 19 15:46:17 2011 +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) %> -