You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

base.rhtml 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <title><%=h html_title %></title>
  6. <meta name="description" content="<%= Redmine::Info.app_name %>" />
  7. <meta name="keywords" content="issue,bug,tracker" />
  8. <%= favicon %>
  9. <%= stylesheet_link_tag 'application', :media => 'all' %>
  10. <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
  11. <%= javascript_include_tag :defaults %>
  12. <%= heads_for_wiki_formatter %>
  13. <!--[if IE]>
  14. <style type="text/css">
  15. * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
  16. body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
  17. </style>
  18. <![endif]-->
  19. <%= call_hook :view_layouts_base_html_head %>
  20. <!-- page specific tags -->
  21. <%= yield :header_tags -%>
  22. </head>
  23. <body class="<%=h body_css_classes %>">
  24. <div id="wrapper">
  25. <div id="wrapper2">
  26. <div id="top-menu">
  27. <div id="account">
  28. <%= render_menu :account_menu -%>
  29. </div>
  30. <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %>
  31. <%= render_menu :top_menu -%>
  32. </div>
  33. <div id="header">
  34. <div id="quick-search">
  35. <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
  36. <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
  37. <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
  38. <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
  39. <% end %>
  40. <%= render_project_jump_box %>
  41. </div>
  42. <h1><%= page_header_title %></h1>
  43. <% if display_main_menu?(@project) %>
  44. <div id="main-menu">
  45. <%= render_main_menu(@project) %>
  46. </div>
  47. <% end %>
  48. </div>
  49. <%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
  50. <div id="sidebar">
  51. <%= yield :sidebar %>
  52. <%= call_hook :view_layouts_base_sidebar %>
  53. </div>
  54. <div id="content">
  55. <%= render_flash_messages %>
  56. <%= yield %>
  57. <%= call_hook :view_layouts_base_content %>
  58. <div style="clear:both;"></div>
  59. </div>
  60. </div>
  61. <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
  62. <div id="footer">
  63. <div class="bgl"><div class="bgr">
  64. Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> &copy; 2006-2010 Jean-Philippe Lang
  65. </div></div>
  66. </div>
  67. </div>
  68. </div>
  69. <%= call_hook :view_layouts_base_body_bottom %>
  70. </body>
  71. </html>