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 @ 443:350acce374a2

History | View | Annotate | Download (3.66 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 170:6d10c3b6fe17 Chris
<meta name="description" content="A repository for software developed and published by audio and music researchers in the UK." />
7
<meta name="keywords" content="audio,music,software,research,UK,sound,repository,code,redmine" />
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 117:af80e5618e9b 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 18:48e89e0a0b7f Chris
<%= tag('div', {:id => 'header', :class => (display_main_menu?(@project) ? 'header-project' : 'header-general')}, true) %>
36 441:cbce1fd3b1b7 Chris
    <% if User.current.logged? || !Setting.login_required? %>
37 115:3e75f003034a luisf
38
    <div id="project-search-jump">
39
      <div id="quick-search">
40
          <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
41
          <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
42
          <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
43
          <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
44
          <% end %>
45
      </div>
46
47
      <div id="project-jump-box">
48 0:513646585e45 Chris
        <%= render_project_jump_box %>
49 115:3e75f003034a luisf
      </div>
50 0:513646585e45 Chris
    </div>
51 441:cbce1fd3b1b7 Chris
    <% end %>
52 115:3e75f003034a luisf
53
    <% unless page_header_title[1].empty? %>
54
      <h3 id="project-ancestors-title"><%= page_header_title[1] %></h3>
55
    <% end %>
56
57 341:b6ec5451fd0d chris
    <h1 id="project-title"
58 115:3e75f003034a luisf
      <% unless page_header_title[1].empty? %>
59
        style="margin-top: 0px; "
60
      <% end %>
61 341:b6ec5451fd0d chris
    ><% if display_main_menu?(@project) %>
62
       <%= link_to_project(@project) %>
63
     <% else %>
64
       <%= page_header_title[0] %>
65
     <% end %>
66
    </h1>
67 0:513646585e45 Chris
68
    <% if display_main_menu?(@project) %>
69
    <div id="main-menu">
70
        <%= render_main_menu(@project) %>
71
    </div>
72
    <% end %>
73
</div>
74
75
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
76
    <div id="sidebar">
77
        <%= yield :sidebar %>
78
        <%= call_hook :view_layouts_base_sidebar %>
79
    </div>
80
81
    <div id="content">
82
                                <%= render_flash_messages %>
83
        <%= yield %>
84
        <%= call_hook :view_layouts_base_content %>
85
                                <div style="clear:both;"></div>
86
    </div>
87
</div>
88
89
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
90
91
<div id="footer">
92
  <div class="bgl"><div class="bgr">
93 358:efa1e508bdef Chris
    <small>Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %><br>&copy; 2006-2011 Jean-Philippe Lang</small>
94 0:513646585e45 Chris
  </div></div>
95
</div>
96
</div>
97
</div>
98
<%= call_hook :view_layouts_base_body_bottom %>
99
</body>
100
</html>