To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / layouts / base.html.erb @ 1591:63650ae64bf2
History | View | Annotate | Download (3.6 KB)
| 1 |
<!DOCTYPE html>
|
|---|---|
| 2 |
<html lang="<%= current_language %>"> |
| 3 |
<head>
|
| 4 |
<meta charset="utf-8" /> |
| 5 |
<title><%=h html_title %></title> |
| 6 |
<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 |
<%= csrf_meta_tag %>
|
| 9 |
<%= favicon %>
|
| 10 |
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %>
|
| 11 |
<%= stylesheet_platform_font_tag %>
|
| 12 |
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
| 13 |
<%= javascript_heads %>
|
| 14 |
<%= heads_for_theme %>
|
| 15 |
<%= call_hook :view_layouts_base_html_head %>
|
| 16 |
<!-- page specific tags -->
|
| 17 |
<%= yield :header_tags -%>
|
| 18 |
</head>
|
| 19 |
<body class="<%=h body_css_classes %>"> |
| 20 |
<div id="wrapper"> |
| 21 |
<div id="wrapper2"> |
| 22 |
<div id="wrapper3"> |
| 23 |
<div id="top-menu"> |
| 24 |
<div id="account"> |
| 25 |
<%= render_menu :account_menu -%>
|
| 26 |
</div>
|
| 27 |
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
| 28 |
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
|
| 29 |
</div>
|
| 30 |
|
| 31 |
<%= tag('div', {:id => 'header', :class => (display_main_menu?(@project) ? 'header-project' : 'header-general')}, true) %>
|
| 32 |
<% if User.current.logged? || !Setting.login_required? %>
|
| 33 |
<div id="project-search-jump"> |
| 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 |
<label for='q'> |
| 38 |
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
|
| 39 |
</label>
|
| 40 |
<%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
|
| 41 |
<% end %>
|
| 42 |
</div>
|
| 43 |
|
| 44 |
<div id="project-jump-box"> |
| 45 |
<%= render_project_jump_box %>
|
| 46 |
</div>
|
| 47 |
</div>
|
| 48 |
<% end %>
|
| 49 |
|
| 50 |
<% unless page_header_title[1].empty? %>
|
| 51 |
<h3 id="project-ancestors-title"><%= page_header_title[1] %></h3> |
| 52 |
<% end %>
|
| 53 |
|
| 54 |
<h1 id="project-title" |
| 55 |
<% unless page_header_title[1].empty? %>
|
| 56 |
style="margin-top: 0px; " |
| 57 |
<% end %>
|
| 58 |
<% if !@project.nil? and @project.name.length > 35 %>
|
| 59 |
class="long-title" |
| 60 |
<% end %>
|
| 61 |
><% if display_main_menu?(@project) %> |
| 62 |
<%= link_to_project(@project) %>
|
| 63 |
<% else %>
|
| 64 |
<%= page_header_title[0] %>
|
| 65 |
<% end %>
|
| 66 |
</h1>
|
| 67 |
|
| 68 |
<% if display_main_menu?(@project) %>
|
| 69 |
<div id="main-menu"> |
| 70 |
<%= render_main_menu(@project) %>
|
| 71 |
</div>
|
| 72 |
<% end %>
|
| 73 |
</div>
|
| 74 |
|
| 75 |
<div id="main" class="<%= sidebar_content? ? '' : 'nosidebar' %>"> |
| 76 |
<div id="sidebar"> |
| 77 |
<%= yield :sidebar %>
|
| 78 |
<%= view_layouts_base_sidebar_hook_response %>
|
| 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 |
</div>
|
| 89 |
|
| 90 |
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> |
| 91 |
<div id="ajax-modal" style="display:none;"></div> |
| 92 |
|
| 93 |
<div id="footer"> |
| 94 |
<div class="bgl"><div class="bgr"> |
| 95 |
<small>Operated by <a href="http://soundsoftware.ac.uk/">SoundSoftware.ac.uk</a> – <a href="mailto:info@soundsoftware.ac.uk">contact us</a><br>Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %></small> |
| 96 |
</div></div> |
| 97 |
</div>
|
| 98 |
</div>
|
| 99 |
</div>
|
| 100 |
<%= call_hook :view_layouts_base_body_bottom %>
|
| 101 |
</body>
|
| 102 |
</html>
|