diff app/helpers/application_helper.rb @ 144:09910262eb0b live

Bug #60: + the "jump to project" input box is now below the search box + the project ancestors are displayed in a separate line
author luisf
date Wed, 12 Jan 2011 17:06:18 +0000
parents 6a2f8e88344e
children e47742d68d2d
line wrap: on
line diff
--- 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 << '&#8230;'
+          b << '&#8230;' 
           ancestors = ancestors[-2, 2]
         end
         b += ancestors.collect {|p| link_to_project(p, {:jump => current_menu_item}, :class => 'ancestor') }
+        b = b.join(' &#187; ')
+        b << (' &#187;')
       end
-      b << h(@project)
-      b.join(' &#187; ')
+
+      pname << h(@project)
+
+      a = [pname, b]
+
     end
   end