Revision 912:5e80956cc792 app/views/layouts
| app/views/layouts/admin.html.erb | ||
|---|---|---|
| 1 |
<% unless controller_name == 'admin' && action_name == 'index' %> |
|
| 2 |
<% content_for :sidebar do %> |
|
| 3 |
<h3><%=l(:label_administration)%></h3> |
|
| 4 |
<%= render :partial => 'admin/menu' %> |
|
| 5 |
<% end %> |
|
| 6 |
<% end %> |
|
| 7 |
|
|
| 8 |
<%= render :file => "layouts/base" %> |
|
| app/views/layouts/admin.rhtml | ||
|---|---|---|
| 1 |
<% unless controller_name == 'admin' && action_name == 'index' %> |
|
| 2 |
<% content_for :sidebar do %> |
|
| 3 |
<h3><%=l(:label_administration)%></h3> |
|
| 4 |
<%= render :partial => 'admin/menu' %> |
|
| 5 |
<% end %> |
|
| 6 |
<% end %> |
|
| 7 |
|
|
| 8 |
<%= render :file => "layouts/base" %> |
|
| app/views/layouts/base.html.erb | ||
|---|---|---|
| 1 |
<!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="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 '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 |
<!--[if IE 6]> |
|
| 16 |
<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 |
<body class="<%=h body_css_classes %>"> |
|
| 26 |
<div id="wrapper"> |
|
| 27 |
<div id="wrapper2"> |
|
| 28 |
<div id="top-menu"> |
|
| 29 |
<div id="account"> |
|
| 30 |
<%= render_menu :account_menu -%> |
|
| 31 |
</div> |
|
| 32 |
<%= 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 |
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> |
|
| 37 |
</div> |
|
| 38 |
|
|
| 39 |
<%= tag('div', {:id => 'header', :class => (display_main_menu?(@project) ? 'header-project' : 'header-general')}, true) %>
|
|
| 40 |
<% if User.current.logged? || !Setting.login_required? %> |
|
| 41 |
|
|
| 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 |
<label for='q'> |
|
| 47 |
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
|
|
| 48 |
</label> |
|
| 49 |
<%= 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 |
<%= render_project_jump_box %> |
|
| 55 |
</div> |
|
| 56 |
</div> |
|
| 57 |
<% end %> |
|
| 58 |
|
|
| 59 |
<% unless page_header_title[1].empty? %> |
|
| 60 |
<h3 id="project-ancestors-title"><%= page_header_title[1] %></h3> |
|
| 61 |
<% end %> |
|
| 62 |
|
|
| 63 |
<h1 id="project-title" |
|
| 64 |
<% unless page_header_title[1].empty? %> |
|
| 65 |
style="margin-top: 0px; " |
|
| 66 |
<% end %> |
|
| 67 |
><% if display_main_menu?(@project) %> |
|
| 68 |
<%= link_to_project(@project) %> |
|
| 69 |
<% else %> |
|
| 70 |
<%= page_header_title[0] %> |
|
| 71 |
<% end %> |
|
| 72 |
</h1> |
|
| 73 |
|
|
| 74 |
<% 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 |
<div id="sidebar"> |
|
| 83 |
<%= yield :sidebar %> |
|
| 84 |
<%= call_hook :view_layouts_base_sidebar %> |
|
| 85 |
</div> |
|
| 86 |
|
|
| 87 |
<div id="content"> |
|
| 88 |
<%= render_flash_messages %> |
|
| 89 |
<%= yield %> |
|
| 90 |
<%= call_hook :view_layouts_base_content %> |
|
| 91 |
<div style="clear:both;"></div> |
|
| 92 |
</div> |
|
| 93 |
</div> |
|
| 94 |
|
|
| 95 |
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> |
|
| 96 |
|
|
| 97 |
<div id="footer"> |
|
| 98 |
<div class="bgl"><div class="bgr"> |
|
| 99 |
<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> |
|
| 100 |
</div></div> |
|
| 101 |
</div> |
|
| 102 |
</div> |
|
| 103 |
</div> |
|
| 104 |
<%= call_hook :view_layouts_base_body_bottom %> |
|
| 105 |
</body> |
|
| 106 |
</html> |
|
| app/views/layouts/base.rhtml | ||
|---|---|---|
| 1 |
<!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="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 '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 |
<!--[if IE 6]> |
|
| 16 |
<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 |
<body class="<%=h body_css_classes %>"> |
|
| 26 |
<div id="wrapper"> |
|
| 27 |
<div id="wrapper2"> |
|
| 28 |
<div id="top-menu"> |
|
| 29 |
<div id="account"> |
|
| 30 |
<%= render_menu :account_menu -%> |
|
| 31 |
</div> |
|
| 32 |
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %>
|
|
| 33 |
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> |
|
| 34 |
</div> |
|
| 35 |
|
|
| 36 |
<%= tag('div', {:id => 'header', :class => (display_main_menu?(@project) ? 'header-project' : 'header-general')}, true) %>
|
|
| 37 |
<% if User.current.logged? || !Setting.login_required? %> |
|
| 38 |
|
|
| 39 |
<div id="project-search-jump"> |
|
| 40 |
<div id="quick-search"> |
|
| 41 |
<% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
|
|
| 42 |
<%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> |
|
| 43 |
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
|
|
| 44 |
<%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %> |
|
| 45 |
<% end %> |
|
| 46 |
</div> |
|
| 47 |
|
|
| 48 |
<div id="project-jump-box"> |
|
| 49 |
<%= render_project_jump_box %> |
|
| 50 |
</div> |
|
| 51 |
</div> |
|
| 52 |
<% end %> |
|
| 53 |
|
|
| 54 |
<% unless page_header_title[1].empty? %> |
|
| 55 |
<h3 id="project-ancestors-title"><%= page_header_title[1] %></h3> |
|
| 56 |
<% end %> |
|
| 57 |
|
|
| 58 |
<h1 id="project-title" |
|
| 59 |
<% unless page_header_title[1].empty? %> |
|
| 60 |
style="margin-top: 0px; " |
|
| 61 |
<% end %> |
|
| 62 |
><% if display_main_menu?(@project) %> |
|
| 63 |
<%= link_to_project(@project) %> |
|
| 64 |
<% else %> |
|
| 65 |
<%= page_header_title[0] %> |
|
| 66 |
<% end %> |
|
| 67 |
</h1> |
|
| 68 |
|
|
| 69 |
<% if display_main_menu?(@project) %> |
|
| 70 |
<div id="main-menu"> |
|
| 71 |
<%= render_main_menu(@project) %> |
|
| 72 |
</div> |
|
| 73 |
<% end %> |
|
| 74 |
</div> |
|
| 75 |
|
|
| 76 |
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
|
|
| 77 |
<div id="sidebar"> |
|
| 78 |
<%= yield :sidebar %> |
|
| 79 |
<%= call_hook :view_layouts_base_sidebar %> |
|
| 80 |
</div> |
|
| 81 |
|
|
| 82 |
<div id="content"> |
|
| 83 |
<%= render_flash_messages %> |
|
| 84 |
<%= yield %> |
|
| 85 |
<%= call_hook :view_layouts_base_content %> |
|
| 86 |
<div style="clear:both;"></div> |
|
| 87 |
</div> |
|
| 88 |
</div> |
|
| 89 |
|
|
| 90 |
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> |
|
| 91 |
|
|
| 92 |
<div id="footer"> |
|
| 93 |
<div class="bgl"><div class="bgr"> |
|
| 94 |
<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> |
|
| 95 |
</div></div> |
|
| 96 |
</div> |
|
| 97 |
</div> |
|
| 98 |
</div> |
|
| 99 |
<%= call_hook :view_layouts_base_body_bottom %> |
|
| 100 |
</body> |
|
| 101 |
</html> |
|
| app/views/layouts/mailer.html.erb | ||
|---|---|---|
| 1 |
<html> |
|
| 2 |
<head> |
|
| 3 |
<style> |
|
| 4 |
body {
|
|
| 5 |
font-family: Verdana, sans-serif; |
|
| 6 |
font-size: 0.8em; |
|
| 7 |
color:#484848; |
|
| 8 |
} |
|
| 9 |
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
|
|
| 10 |
h1 { font-size: 1.2em; }
|
|
| 11 |
h2, h3 { font-size: 1.1em; }
|
|
| 12 |
a, a:link, a:visited { color: #2A5685;}
|
|
| 13 |
a:hover, a:active { color: #c61a1a; }
|
|
| 14 |
a.wiki-anchor { display: none; }
|
|
| 15 |
hr {
|
|
| 16 |
width: 100%; |
|
| 17 |
height: 1px; |
|
| 18 |
background: #ccc; |
|
| 19 |
border: 0; |
|
| 20 |
} |
|
| 21 |
.footer {
|
|
| 22 |
font-size: 0.8em; |
|
| 23 |
font-style: italic; |
|
| 24 |
} |
|
| 25 |
</style> |
|
| 26 |
</head> |
|
| 27 |
<body> |
|
| 28 |
<span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header) %></span> |
|
| 29 |
<%= yield %> |
|
| 30 |
<hr /> |
|
| 31 |
<span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer) %></span> |
|
| 32 |
</body> |
|
| 33 |
</html> |
|
| app/views/layouts/mailer.text.erb | ||
|---|---|---|
| 1 |
<%= Setting.emails_header %> |
|
| 2 |
<%= yield %> |
|
| 3 |
-- |
|
| 4 |
<%= Setting.emails_footer %> |
|
| app/views/layouts/mailer.text.html.erb | ||
|---|---|---|
| 1 |
<html> |
|
| 2 |
<head> |
|
| 3 |
<style> |
|
| 4 |
body {
|
|
| 5 |
font-family: Verdana, sans-serif; |
|
| 6 |
font-size: 0.8em; |
|
| 7 |
color:#484848; |
|
| 8 |
} |
|
| 9 |
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
|
|
| 10 |
h1 { font-size: 1.2em; }
|
|
| 11 |
h2, h3 { font-size: 1.1em; }
|
|
| 12 |
a, a:link, a:visited { color: #2A5685;}
|
|
| 13 |
a:hover, a:active { color: #c61a1a; }
|
|
| 14 |
a.wiki-anchor { display: none; }
|
|
| 15 |
hr {
|
|
| 16 |
width: 100%; |
|
| 17 |
height: 1px; |
|
| 18 |
background: #ccc; |
|
| 19 |
border: 0; |
|
| 20 |
} |
|
| 21 |
.footer {
|
|
| 22 |
font-size: 0.8em; |
|
| 23 |
font-style: italic; |
|
| 24 |
} |
|
| 25 |
</style> |
|
| 26 |
</head> |
|
| 27 |
<body> |
|
| 28 |
<span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header) %></span> |
|
| 29 |
<%= yield %> |
|
| 30 |
<hr /> |
|
| 31 |
<span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer) %></span> |
|
| 32 |
</body> |
|
| 33 |
</html> |
|
| app/views/layouts/mailer.text.plain.erb | ||
|---|---|---|
| 1 |
<%= Setting.emails_header %> |
|
| 2 |
<%= yield %> |
|
| 3 |
-- |
|
| 4 |
<%= Setting.emails_footer %> |
|
Also available in: Unified diff