diff app/views/layouts/base.rhtml @ 18:48e89e0a0b7f yuya

* Some stylesheet updates; give main title a distinguishable ID from project title
author Chris Cannam
date Fri, 10 Sep 2010 15:57:01 +0100
parents 1d32c0a0efbf
children 3e75f003034a b859cc0c4fa1
line wrap: on
line diff
--- a/app/views/layouts/base.rhtml	Fri Sep 10 15:17:13 2010 +0100
+++ b/app/views/layouts/base.rhtml	Fri Sep 10 15:57:01 2010 +0100
@@ -31,7 +31,7 @@
     <%= render_menu :top_menu -%>
 </div>
       
-<div id="header">
+<%= tag('div', {:id => 'header', :class => (display_main_menu?(@project) ? 'header-project' : 'header-general')}, true) %>
     <div id="quick-search">
         <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
         <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
@@ -42,7 +42,7 @@
     </div>
     
     <h1><%= page_header_title %></h1>
-    
+
     <% if display_main_menu?(@project) %>
     <div id="main-menu">
         <%= render_main_menu(@project) %>