##// END OF EJS Templates
Set doctype to transitional. Fixed a few non matching tags in views....
Jean-Philippe Lang -
r1009:bb8d360188b6
parent child
Show More
@@ -1,12 +1,12
1 <% user_projects_by_root = User.current.projects.find(:all, :include => :parent).group_by(&:root) %>
1 <% user_projects_by_root = User.current.projects.find(:all, :include => :parent).group_by(&:root) %>
2 <select onchange="if (this.value != '') { window.location = this.value; }">
2 <select onchange="if (this.value != '') { window.location = this.value; }">
3 <option selected><%= l(:label_jump_to_a_project) %></option>
3 <option selected="selected"><%= l(:label_jump_to_a_project) %></option>
4 <option disabled>---</option>
4 <option disabled="disabled">---</option>
5 <% user_projects_by_root.keys.sort.each do |root| %>
5 <% user_projects_by_root.keys.sort.each do |root| %>
6 <%= content_tag('option', h(root.name), :value => url_for(:controller => 'projects', :action => 'show', :id => root)) %>
6 <%= content_tag('option', h(root.name), :value => url_for(:controller => 'projects', :action => 'show', :id => root)) %>
7 <% user_projects_by_root[root].sort.each do |project| %>
7 <% user_projects_by_root[root].sort.each do |project| %>
8 <% next if project == root %>
8 <% next if project == root %>
9 <%= content_tag('option', ('&#187; ' + h(project.name)), :value => url_for(:controller => 'projects', :action => 'show', :id => project)) %>
9 <%= content_tag('option', ('&#187; ' + h(project.name)), :value => url_for(:controller => 'projects', :action => 'show', :id => project)) %>
10 <% end %>
10 <% end %>
11 <% end %>
11 <% end %>
12 </select>
12 </select>
@@ -1,79 +1,79
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
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">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3 <head>
3 <head>
4 <title><%=h html_title %></title>
4 <title><%=h html_title %></title>
5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 <meta name="description" content="<%= Redmine::Info.app_name %>" />
6 <meta name="description" content="<%= Redmine::Info.app_name %>" />
7 <meta name="keywords" content="issue,bug,tracker" />
7 <meta name="keywords" content="issue,bug,tracker" />
8 <%= stylesheet_link_tag 'application', :media => 'all' %>
8 <%= stylesheet_link_tag 'application', :media => 'all' %>
9 <%= javascript_include_tag :defaults %>
9 <%= javascript_include_tag :defaults %>
10 <%= stylesheet_link_tag 'jstoolbar' %>
10 <%= stylesheet_link_tag 'jstoolbar' %>
11 <!--[if IE]>
11 <!--[if IE]>
12 <style type="text/css">
12 <style type="text/css">
13 * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
13 * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
14 body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
14 body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
15 </style>
15 </style>
16 <![endif]-->
16 <![endif]-->
17
17
18 <!-- page specific tags --><%= yield :header_tags %>
18 <!-- page specific tags --><%= yield :header_tags %>
19 </head>
19 </head>
20 <body>
20 <body>
21 <div id="top-menu">
21 <div id="top-menu">
22 <div id="account">
22 <div id="account">
23 <% if User.current.logged? %>
23 <% if User.current.logged? %>
24 <%=l(:label_logged_as)%> <%= User.current.login %> -
24 <%=l(:label_logged_as)%> <%= User.current.login %> -
25 <%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => 'myaccount' %>
25 <%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => 'myaccount' %>
26 <%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => 'logout' %>
26 <%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => 'logout' %>
27 <% else %>
27 <% else %>
28 <%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => 'signin' %>
28 <%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => 'signin' %>
29 <%= link_to(l(:label_register), { :controller => 'account',:action => 'register' }, :class => 'register') if Setting.self_registration? %>
29 <%= link_to(l(:label_register), { :controller => 'account',:action => 'register' }, :class => 'register') if Setting.self_registration? %>
30 <% end %>
30 <% end %>
31 </div>
31 </div>
32 <%= link_to l(:label_home), home_url, :class => 'home' %>
32 <%= link_to l(:label_home), home_url, :class => 'home' %>
33 <%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => 'mypage' if User.current.logged? %>
33 <%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => 'mypage' if User.current.logged? %>
34 <%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => 'projects' %>
34 <%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => 'projects' %>
35 <%= link_to l(:label_administration), { :controller => 'admin' }, :class => 'admin' if User.current.admin? %>
35 <%= link_to l(:label_administration), { :controller => 'admin' }, :class => 'admin' if User.current.admin? %>
36 <%= link_to l(:label_help), Redmine::Info.help_url, :class => 'help' %>
36 <%= link_to l(:label_help), Redmine::Info.help_url, :class => 'help' %>
37 </div>
37 </div>
38
38
39 <div id="header">
39 <div id="header">
40 <div id="quick-search">
40 <div id="quick-search">
41 <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
41 <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
42 <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
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) %>
43 <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
44 <% end %>
44 <% end %>
45 <%= render :partial => 'layouts/project_selector' if User.current.memberships.any? %>
45 <%= render :partial => 'layouts/project_selector' if User.current.memberships.any? %>
46 </div>
46 </div>
47
47
48 <h1><%= h(@project ? @project.name : Setting.app_title) %></h1>
48 <h1><%= h(@project ? @project.name : Setting.app_title) %></h1>
49
49
50 <div id="main-menu">
50 <div id="main-menu">
51 <ul>
51 <ul>
52 <% Redmine::MenuManager.allowed_items(:project_menu, User.current, @project).each do |item| %>
52 <% Redmine::MenuManager.allowed_items(:project_menu, User.current, @project).each do |item| %>
53 <% unless item.condition && !item.condition.call(@project) %>
53 <% unless item.condition && !item.condition.call(@project) %>
54 <li><%= link_to l(item.name), {item.param => @project}.merge(item.url) %></li>
54 <li><%= link_to l(item.name), {item.param => @project}.merge(item.url) %></li>
55 <% end %>
55 <% end %>
56 <% end if @project && !@project.new_record? %>
56 <% end if @project && !@project.new_record? %>
57 </ul>
57 </ul>
58 </div>
58 </div>
59 </div>
59 </div>
60
60
61 <%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
61 <%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
62 <div id="sidebar">
62 <div id="sidebar">
63 <%= yield :sidebar %>
63 <%= yield :sidebar %>
64 </div>
64 </div>
65
65
66 <div id="content">
66 <div id="content">
67 <%= content_tag('div', flash[:error], :class => 'flash error') if flash[:error] %>
67 <%= content_tag('div', flash[:error], :class => 'flash error') if flash[:error] %>
68 <%= content_tag('div', flash[:notice], :class => 'flash notice') if flash[:notice] %>
68 <%= content_tag('div', flash[:notice], :class => 'flash notice') if flash[:notice] %>
69 <%= yield %>
69 <%= yield %>
70 </div>
70 </div>
71 </div>
71 </div>
72
72
73 <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
73 <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
74
74
75 <div id="footer">
75 <div id="footer">
76 Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> <%= Redmine::VERSION %> &copy 2006-2007 Jean-Philippe Lang
76 Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> <%= Redmine::VERSION %> &copy; 2006-2007 Jean-Philippe Lang
77 </div>
77 </div>
78 </body>
78 </body>
79 </html>
79 </html>
@@ -1,6 +1,6
1 <p><%= link_to(h(news.project.name), :controller => 'projects', :action => 'show', :id => news.project) + ': ' unless @project %>
1 <p><%= link_to(h(news.project.name), :controller => 'projects', :action => 'show', :id => news.project) + ': ' unless @project %>
2 <%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
2 <%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
3 <%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %></span>
3 <%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %>
4 <br />
4 <br />
5 <% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
5 <% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
6 <span class="author"><%= authoring news.created_on, news.author %></p>
6 <span class="author"><%= authoring news.created_on, news.author %></span></p>
General Comments 0
You need to be logged in to leave comments. Login now