Feature #505
closedbase.rhtml header adjustment
Description
\app\views\layouts\base.rhtml
I got some help with my second image on #header (h1 wasn't the correct size, I needed 100% height and completely right
within #header)
Would it be possible to put this in as it also helps for more configurations in css theming
Cheers
code
<div id="header">
<table width="100%" height="100%" cellpadding=0 cellspacing=0>
<tr width=100%>
<td id="header_left" width = 75% valign=top>
<h1><%= h(@project ? @project.name : Setting.app_title) ></h1>
<div id="main-menu">
<ul>
< Redmine::MenuManager.allowed_items(:project_menu, User.current, @project).each do |item| >
< unless item.condition && !item.condition.call(@project) >
<li><= link_to l(item.name), {item.param => @project}.merge(item.url) ></li>
< end >
< end if @project && !@project.new_record? >
</ul>
</div>
</td>
<td id="header_right" width = 25>
<div id="quick-search">
<% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get
) do >
<= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project},
:accesskey => accesskey(:search) >:
<= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey =>
accesskey(:quick_search) >
< end >
<= render :partial => 'layouts/project_selector' if User.current.memberships.any? %>
</div>
</td>
</tr>
</table>
Files
Updated by Jean-Philippe Lang about 19 years ago
Tables shouldn't be used for layout.
I'm pretty sure that your background problem can be solved using
css. You can send me a screenshot of your excepted header design
with your backgrounds, I'll try to send you the corresponding
css.
Updated by Jonathan Hall about 19 years ago
Thanks!
Updated by Jonathan Hall about 19 years ago
File is attached by the way
Updated by Jean-Philippe Lang about 19 years ago
Here is the modified css that do the same with no change
to layout.rhtml