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.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (3.86 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 503:5d608412b003 chris
<%= stylesheet_platform_font_tag %>
12 14:1d32c0a0efbf Chris
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
13 245:051f544170fe Chris
<%= javascript_heads %>
14 117:af80e5618e9b Chris
<%= heads_for_theme %>
15 128:07fa8a8b56a8 Chris
<!--[if IE 6]>
16 0:513646585e45 Chris
    <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 245:051f544170fe Chris
<body class="<%=h body_css_classes %>">
26 0:513646585e45 Chris
<div id="wrapper">
27
<div id="wrapper2">
28
<div id="top-menu">
29
    <div id="account">
30
        <%= render_menu :account_menu -%>
31
    </div>
32 909:cbb26bc654de Chris
    <%= content_tag(
33
           'div',
34
           "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe,
35
           :id => 'loggedas') if User.current.logged? %>
36 441:cbce1fd3b1b7 Chris
    <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
37 0:513646585e45 Chris
</div>
38 909:cbb26bc654de Chris
39 18:48e89e0a0b7f Chris
<%= tag('div', {:id => 'header', :class => (display_main_menu?(@project) ? 'header-project' : 'header-general')}, true) %>
40 441:cbce1fd3b1b7 Chris
    <% if User.current.logged? || !Setting.login_required? %>
41 115:3e75f003034a luisf
42
    <div id="project-search-jump">
43
      <div id="quick-search">
44
          <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
45
          <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
46 909:cbb26bc654de Chris
        <label for='q'>
47
          <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
48
        </label>
49 115:3e75f003034a luisf
          <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
50
          <% end %>
51
      </div>
52
53
      <div id="project-jump-box">
54 0:513646585e45 Chris
        <%= render_project_jump_box %>
55 115:3e75f003034a luisf
      </div>
56 0:513646585e45 Chris
    </div>
57 441:cbce1fd3b1b7 Chris
    <% end %>
58 909:cbb26bc654de Chris
59 115:3e75f003034a luisf
    <% unless page_header_title[1].empty? %>
60
      <h3 id="project-ancestors-title"><%= page_header_title[1] %></h3>
61
    <% end %>
62
63 341:b6ec5451fd0d chris
    <h1 id="project-title"
64 115:3e75f003034a luisf
      <% unless page_header_title[1].empty? %>
65
        style="margin-top: 0px; "
66
      <% end %>
67 341:b6ec5451fd0d chris
    ><% if display_main_menu?(@project) %>
68
       <%= link_to_project(@project) %>
69
     <% else %>
70
       <%= page_header_title[0] %>
71
     <% end %>
72
    </h1>
73 909:cbb26bc654de Chris
74 0:513646585e45 Chris
    <% if display_main_menu?(@project) %>
75
    <div id="main-menu">
76
        <%= render_main_menu(@project) %>
77
    </div>
78
    <% end %>
79
</div>
80
81
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
82 909:cbb26bc654de Chris
    <div id="sidebar">
83 0:513646585e45 Chris
        <%= yield :sidebar %>
84
        <%= call_hook :view_layouts_base_sidebar %>
85
    </div>
86 909:cbb26bc654de Chris
87 0:513646585e45 Chris
    <div id="content">
88 909:cbb26bc654de Chris
        <%= render_flash_messages %>
89 0:513646585e45 Chris
        <%= yield %>
90
        <%= call_hook :view_layouts_base_content %>
91 909:cbb26bc654de Chris
        <div style="clear:both;"></div>
92 0:513646585e45 Chris
    </div>
93
</div>
94
95
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
96 909:cbb26bc654de Chris
97 0:513646585e45 Chris
<div id="footer">
98
  <div class="bgl"><div class="bgr">
99 488:0b44fc2cdd00 chris
    <small>Operated by <a href="http://soundsoftware.ac.uk/">SoundSoftware.ac.uk</a> &ndash; <a href="mailto:info@soundsoftware.ac.uk">contact us</a><br>Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %></small>
100 0:513646585e45 Chris
  </div></div>
101
</div>
102
</div>
103
</div>
104
<%= call_hook :view_layouts_base_body_bottom %>
105
</body>
106
</html>