To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / layouts / base.rhtml @ 441:cbce1fd3b1b7

History | View | Annotate | Download (2.96 KB)

1 0:513646585e45 Chris
<!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 441:cbce1fd3b1b7 Chris
<%= csrf_meta_tag %>
9 14:1d32c0a0efbf Chris
<%= favicon %>
10 0:513646585e45 Chris
<%= stylesheet_link_tag 'application', :media => 'all' %>
11 14:1d32c0a0efbf Chris
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
12 245:051f544170fe Chris
<%= javascript_heads %>
13 119:8661b858af72 Chris
<%= heads_for_theme %>
14 128:07fa8a8b56a8 Chris
<!--[if IE 6]>
15 0:513646585e45 Chris
    <style type="text/css">
16
      * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
17
      body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
18
    </style>
19
<![endif]-->
20
<%= call_hook :view_layouts_base_html_head %>
21
<!-- page specific tags -->
22
<%= yield :header_tags -%>
23
</head>
24 245:051f544170fe Chris
<body class="<%=h body_css_classes %>">
25 0:513646585e45 Chris
<div id="wrapper">
26
<div id="wrapper2">
27
<div id="top-menu">
28
    <div id="account">
29
        <%= render_menu :account_menu -%>
30
    </div>
31
    <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %>
32 441:cbce1fd3b1b7 Chris
    <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
33 0:513646585e45 Chris
</div>
34
35
<div id="header">
36 441:cbce1fd3b1b7 Chris
    <% if User.current.logged? || !Setting.login_required? %>
37 0:513646585e45 Chris
    <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
        <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
41
        <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
42
        <% end %>
43
        <%= render_project_jump_box %>
44
    </div>
45 441:cbce1fd3b1b7 Chris
    <% end %>
46 0:513646585e45 Chris
47
    <h1><%= page_header_title %></h1>
48
49
    <% if display_main_menu?(@project) %>
50
    <div id="main-menu">
51
        <%= render_main_menu(@project) %>
52
    </div>
53
    <% end %>
54
</div>
55
56
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
57
    <div id="sidebar">
58
        <%= yield :sidebar %>
59
        <%= call_hook :view_layouts_base_sidebar %>
60
    </div>
61
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
70
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
71
72
<div id="footer">
73
  <div class="bgl"><div class="bgr">
74 119:8661b858af72 Chris
    Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> &copy; 2006-2011 Jean-Philippe Lang
75 0:513646585e45 Chris
  </div></div>
76
</div>
77
</div>
78
</div>
79
<%= call_hook :view_layouts_base_body_bottom %>
80
</body>
81
</html>