base.rhtml
67 lines
| 2.6 KiB
| text/html+ruby
|
RhtmlLexer
|
r1009 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
|
r330 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | ||
<head> | ||||
|
r704 | <title><%=h html_title %></title> | ||
|
r330 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
|
r671 | <meta name="description" content="<%= Redmine::Info.app_name %>" /> | ||
|
r330 | <meta name="keywords" content="issue,bug,tracker" /> | ||
|
r775 | <%= stylesheet_link_tag 'application', :media => 'all' %> | ||
|
r1793 | <%= javascript_include_tag :defaults %> | ||
|
r1953 | <%= heads_for_wiki_formatter %> | ||
|
r736 | <!--[if IE]> | ||
<style type="text/css"> | ||||
* html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); } | ||||
body {behavior: url(<%= stylesheet_path "csshover.htc" %>);} | ||||
</style> | ||||
<![endif]--> | ||||
|
r1785 | <%= call_hook :view_layouts_base_html_head %> | ||
<!-- page specific tags --> | ||||
<%= yield :header_tags -%> | ||||
|
r330 | </head> | ||
<body> | ||||
|
r1031 | <div id="wrapper"> | ||
|
r736 | <div id="top-menu"> | ||
<div id="account"> | ||||
|
r1123 | <%= render_menu :account_menu -%> | ||
|
r486 | </div> | ||
|
r1123 | <%= content_tag('div', "#{l(:label_logged_as)} #{User.current.login}", :id => 'loggedas') if User.current.logged? %> | ||
<%= render_menu :top_menu -%> | ||||
|
r736 | </div> | ||
<div id="header"> | ||||
<div id="quick-search"> | ||||
<% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %> | ||||
|
r793 | <%= 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) %> | ||||
|
r736 | <% end %> | ||
<%= render :partial => 'layouts/project_selector' if User.current.memberships.any? %> | ||||
|
r330 | </div> | ||
|
r736 | |||
|
r1512 | <h1><%= h(@project && !@project.new_record? ? @project.name : Setting.app_title) %></h1> | ||
|
r736 | |||
<div id="main-menu"> | ||||
|
r1062 | <%= render_main_menu(@project) %> | ||
|
r736 | </div> | ||
</div> | ||||
|
r482 | |||
|
r736 | <%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %> | ||
<div id="sidebar"> | ||||
<%= yield :sidebar %> | ||||
</div> | ||||
<div id="content"> | ||||
|
r846 | <%= content_tag('div', flash[:error], :class => 'flash error') if flash[:error] %> | ||
<%= content_tag('div', flash[:notice], :class => 'flash notice') if flash[:notice] %> | ||||
|
r736 | <%= yield %> | ||
</div> | ||||
</div> | ||||
|
r330 | |||
|
r736 | <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> | ||
<div id="footer"> | ||||
|
r1211 | Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> © 2006-2008 Jean-Philippe Lang | ||
|
r330 | </div> | ||
|
r1031 | </div> | ||
|
r1919 | <%= call_hook :view_layouts_base_body_bottom %> | ||
|
r330 | </body> | ||
|
r597 | </html> | ||