Feature #505

base.rhtml header adjustment

Added by Jonathan Hall over 14 years ago. Updated over 14 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:

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 && _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>

application.css Magnifier (1.74 KB) Jonathan Hall, 2008-02-03 11:12

alternate.zip (142 KB) Jonathan Hall, 2008-02-03 11:12

History

#1 Updated by Jean-Philippe Lang over 14 years ago

Here is the modified css that do the same with no change
to layout.rhtml

#2 Updated by Jonathan Hall over 14 years ago

File is attached by the way

#3 Updated by Jonathan Hall over 14 years ago

Thanks!

#4 Updated by Jean-Philippe Lang over 14 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.

Also available in: Atom PDF