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.html.erb 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
  9. <%= csrf_meta_tag %>
  10. <%= favicon %>
  11. <%= stylesheet_link_tag 'application', :media => 'all' %>
  12. <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
  13. <%= javascript_heads %>
  14. <%= heads_for_theme %>
  15. <!--[if IE 6]>
  16. <style type="text/css">
  17. * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
  18. body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
  19. </style>
  20. <![endif]-->
  21. <%= call_hook :view_layouts_base_html_head %>
  22. <!-- page specific tags -->
  23. <%= yield :header_tags -%>
  24. </head>
  25. <body class="<%=h body_css_classes %>">
  26. <div id="wrapper">
  27. <div id="wrapper2">
  28. <div id="top-menu">
  29. <div id="account">
  30. <%= render_menu :account_menu -%>
  31. </div>
  32. <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
  33. <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
  34. </div>
  35. <div id="header">
  36. <% if User.current.logged? || !Setting.login_required? %>
  37. <div id="quick-search">
  38. <%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
  39. <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
  40. <label for='q'>
  41. <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
  42. </label>
  43. <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
  44. <% end %>
  45. <%= render_project_jump_box %>
  46. </div>
  47. <% end %>
  48. <h1><%= page_header_title %></h1>
  49. <% if display_main_menu?(@project) %>
  50. <div id="main-menu">
  51. <%= render_main_menu(@project) %>
  52. </div>
  53. <% end %>
  54. </div>
  55. <% content_for :sidebar do %>
  56. <%= call_hook :view_layouts_base_sidebar %>
  57. <% end %>
  58. <%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
  59. <div id="sidebar">
  60. <%= yield :sidebar %>
  61. </div>
  62. <div id="content">
  63. <%= render_flash_messages %>
  64. <%= yield %>
  65. <%= call_hook :view_layouts_base_content %>
  66. <div style="clear:both;"></div>
  67. </div>
  68. </div>
  69. <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
  70. <div id="ajax-modal" style="display:none;"></div>
  71. <div id="footer">
  72. <div class="bgl"><div class="bgr">
  73. Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> &copy; 2006-2012 Jean-Philippe Lang
  74. </div></div>
  75. </div>
  76. </div>
  77. </div>
  78. <%= call_hook :view_layouts_base_body_bottom %>
  79. </body>
  80. </html>