Mercurial > hg > soundsoftware-site
view app/views/layouts/base.rhtml @ 488:0b44fc2cdd00 feature_188
Include link to our site and contact link in page footer
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Mon, 11 Jul 2011 16:50:18 +0100 |
parents | 350acce374a2 |
children | 5d608412b003 |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title><%=h html_title %></title> <meta name="description" content="A repository for software developed and published by audio and music researchers in the UK." /> <meta name="keywords" content="audio,music,software,research,UK,sound,repository,code,redmine" /> <%= csrf_meta_tag %> <%= favicon %> <%= stylesheet_link_tag 'application', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> <%= javascript_heads %> <%= heads_for_theme %> <!--[if IE 6]> <style type="text/css"> * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); } body {behavior: url(<%= stylesheet_path "csshover.htc" %>);} </style> <![endif]--> <%= call_hook :view_layouts_base_html_head %> <!-- page specific tags --> <%= yield :header_tags -%> </head> <body class="<%=h body_css_classes %>"> <div id="wrapper"> <div id="wrapper2"> <div id="top-menu"> <div id="account"> <%= render_menu :account_menu -%> </div> <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %> <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> </div> <%= tag('div', {:id => 'header', :class => (display_main_menu?(@project) ? 'header-project' : 'header-general')}, true) %> <% if User.current.logged? || !Setting.login_required? %> <div id="project-search-jump"> <div id="quick-search"> <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %> <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>: <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %> <% end %> </div> <div id="project-jump-box"> <%= render_project_jump_box %> </div> </div> <% end %> <% unless page_header_title[1].empty? %> <h3 id="project-ancestors-title"><%= page_header_title[1] %></h3> <% end %> <h1 id="project-title" <% unless page_header_title[1].empty? %> style="margin-top: 0px; " <% end %> ><% if display_main_menu?(@project) %> <%= link_to_project(@project) %> <% else %> <%= page_header_title[0] %> <% end %> </h1> <% if display_main_menu?(@project) %> <div id="main-menu"> <%= render_main_menu(@project) %> </div> <% end %> </div> <%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %> <div id="sidebar"> <%= yield :sidebar %> <%= call_hook :view_layouts_base_sidebar %> </div> <div id="content"> <%= render_flash_messages %> <%= yield %> <%= call_hook :view_layouts_base_content %> <div style="clear:both;"></div> </div> </div> <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> <div id="footer"> <div class="bgl"><div class="bgr"> <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> </div></div> </div> </div> </div> <%= call_hook :view_layouts_base_body_bottom %> </body> </html>