Project

General

Profile

Actions

Feature #505

closed

base.rhtml header adjustment

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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(Herve Harster ? @project.name : Setting.app_title) ></h1>
<div id="main-menu">
<ul>
<
Redmine::MenuManager.allowed_items(:project_menu, User.current, Herve Harster).each do |item| >
<
unless item.condition && !item.condition.call(Herve Harster) >
<li><
= link_to l(item.name), {item.param => Herve Harster}.merge(item.url) ></li>
<
end >
<
end if Herve Harster && _record? >
</ul>
</div>
</td>
<td id="header_right" width = 25
>
<div id="quick-search">
<% form_tag({:controller => 'search', :action => 'index', :id => Herve Harster}, :method => :get
) do >
<
= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => Herve Harster},
: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

application.css (1.74 KB) application.css Jonathan Hall, 2008-02-03 11:12
alternate.zip (142 KB) alternate.zip Jonathan Hall, 2008-02-03 11:12
Actions #1

Updated by Jean-Philippe Lang over 16 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.

Actions #2

Updated by Jonathan Hall over 16 years ago

Thanks!

Actions #3

Updated by Jonathan Hall over 16 years ago

File is attached by the way

Actions #4

Updated by Jean-Philippe Lang over 16 years ago

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

Actions

Also available in: Atom PDF