base.rhtml
79 lines
| 3.5 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' %> | ||
|
r330 | <%= javascript_include_tag :defaults %> | ||
<%= stylesheet_link_tag 'jstoolbar' %> | ||||
|
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]--> | ||||
|
r330 | <!-- page specific tags --><%= yield :header_tags %> | ||
</head> | ||||
<body> | ||||
|
r736 | <div id="top-menu"> | ||
<div id="account"> | ||||
<% if User.current.logged? %> | ||||
<%=l(:label_logged_as)%> <%= User.current.login %> - | ||||
|
r909 | <%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => 'myaccount' %> | ||
|
r1017 | <%= link_to_signout %> | ||
|
r736 | <% else %> | ||
|
r1017 | <%= link_to_signin %> | ||
|
r909 | <%= link_to(l(:label_register), { :controller => 'account',:action => 'register' }, :class => 'register') if Setting.self_registration? %> | ||
|
r736 | <% end %> | ||
|
r486 | </div> | ||
|
r909 | <%= link_to l(:label_home), home_url, :class => 'home' %> | ||
<%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => 'mypage' if User.current.logged? %> | ||||
<%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => 'projects' %> | ||||
<%= link_to l(:label_administration), { :controller => 'admin' }, :class => 'admin' if User.current.admin? %> | ||||
<%= link_to l(:label_help), Redmine::Info.help_url, :class => 'help' %> | ||||
|
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 | |||
<h1><%= h(@project ? @project.name : Setting.app_title) %></h1> | ||||
<div id="main-menu"> | ||||
<ul> | ||||
|
r714 | <% Redmine::MenuManager.allowed_items(:project_menu, User.current, @project).each do |item| %> | ||
|
r663 | <% unless item.condition && !item.condition.call(@project) %> | ||
<li><%= link_to l(item.name), {item.param => @project}.merge(item.url) %></li> | ||||
<% end %> | ||||
|
r736 | <% end if @project && !@project.new_record? %> | ||
</ul> | ||||
</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"> | ||||
|
r1009 | Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> <%= Redmine::VERSION %> © 2006-2007 Jean-Philippe Lang | ||
|
r330 | </div> | ||
</body> | ||||
|
r597 | </html> | ||