##// END OF EJS Templates
Use a table instead of an unordered list in "Issue tracking" box (#20413)....
Jean-Philippe Lang -
r14258:da8f8c711533
parent child
Show More
@@ -1,85 +1,105
1 <div class="contextual">
1 <div class="contextual">
2 <% if User.current.allowed_to?(:add_subprojects, @project) %>
2 <% if User.current.allowed_to?(:add_subprojects, @project) %>
3 <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
3 <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
4 <% end %>
4 <% end %>
5 <% if User.current.allowed_to?(:close_project, @project) %>
5 <% if User.current.allowed_to?(:close_project, @project) %>
6 <% if @project.active? %>
6 <% if @project.active? %>
7 <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
7 <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
8 <% else %>
8 <% else %>
9 <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
9 <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
10 <% end %>
10 <% end %>
11 <% end %>
11 <% end %>
12 </div>
12 </div>
13
13
14 <h2><%=l(:label_overview)%></h2>
14 <h2><%=l(:label_overview)%></h2>
15
15
16 <% unless @project.active? %>
16 <% unless @project.active? %>
17 <p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
17 <p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
18 <% end %>
18 <% end %>
19
19
20 <div class="splitcontentleft">
20 <div class="splitcontentleft">
21 <% if @project.description.present? %>
21 <% if @project.description.present? %>
22 <div class="wiki">
22 <div class="wiki">
23 <%= textilizable @project.description %>
23 <%= textilizable @project.description %>
24 </div>
24 </div>
25 <% end %>
25 <% end %>
26 <ul>
26 <ul>
27 <% unless @project.homepage.blank? %>
27 <% unless @project.homepage.blank? %>
28 <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to @project.homepage, @project.homepage %></li>
28 <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to @project.homepage, @project.homepage %></li>
29 <% end %>
29 <% end %>
30 <% if @subprojects.any? %>
30 <% if @subprojects.any? %>
31 <li><span class="label"><%=l(:label_subproject_plural)%>:</span>
31 <li><span class="label"><%=l(:label_subproject_plural)%>:</span>
32 <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
32 <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
33 <% end %>
33 <% end %>
34 <% render_custom_field_values(@project) do |custom_field, formatted| %>
34 <% render_custom_field_values(@project) do |custom_field, formatted| %>
35 <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
35 <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
36 <% end %>
36 <% end %>
37 </ul>
37 </ul>
38
38
39 <% if User.current.allowed_to?(:view_issues, @project) %>
39 <% if User.current.allowed_to?(:view_issues, @project) %>
40 <div class="issues box">
40 <div class="issues box">
41 <h3><%=l(:label_issue_tracking)%></h3>
41 <h3><%=l(:label_issue_tracking)%></h3>
42 <ul>
42 <table class="list issue-report">
43 <% for tracker in @trackers %>
43 <thead>
44 <li><%= link_to tracker.name, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
44 <tr>
45 <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
45 <th></th>
46 :total => @total_issues_by_tracker[tracker].to_i) %>
46 <th><%=l(:label_open_issues_plural)%></th>
47 </li>
47 <th><%=l(:label_closed_issues_plural)%></th>
48 <% end %>
48 <th><%=l(:label_total)%></th>
49 </ul>
49 </tr>
50 </thead>
51 <tbody>
52 <% @trackers.each do |tracker| %>
53 <tr class="<%= cycle("odd", "even") %>">
54 <td class="name">
55 <%= tracker.name %>
56 </td>
57 <td>
58 <%= link_to @open_issues_by_tracker[tracker].to_i, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>
59 </td>
60 <td>
61 <%= link_to (@total_issues_by_tracker[tracker].to_i - @open_issues_by_tracker[tracker].to_i), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id, :status_id => 'c') %>
62 </td>
63 <td>
64 <%= link_to @total_issues_by_tracker[tracker].to_i, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id, :status_id => '*') %>
65 </td>
66 </tr>
67 <% end %>
68 </tbody>
69 </table>
50 <p>
70 <p>
51 <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
71 <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
52 <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
72 <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
53 | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
73 | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
54 <% end %>
74 <% end %>
55 <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
75 <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
56 | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
76 | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
57 <% end %>
77 <% end %>
58 </p>
78 </p>
59 </div>
79 </div>
60 <% end %>
80 <% end %>
61 <%= call_hook(:view_projects_show_left, :project => @project) %>
81 <%= call_hook(:view_projects_show_left, :project => @project) %>
62 </div>
82 </div>
63
83
64 <div class="splitcontentright">
84 <div class="splitcontentright">
65 <%= render :partial => 'members_box' %>
85 <%= render :partial => 'members_box' %>
66
86
67 <% if @news.any? && authorize_for('news', 'index') %>
87 <% if @news.any? && authorize_for('news', 'index') %>
68 <div class="news box">
88 <div class="news box">
69 <h3><%=l(:label_news_latest)%></h3>
89 <h3><%=l(:label_news_latest)%></h3>
70 <%= render :partial => 'news/news', :collection => @news %>
90 <%= render :partial => 'news/news', :collection => @news %>
71 <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
91 <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
72 </div>
92 </div>
73 <% end %>
93 <% end %>
74 <%= call_hook(:view_projects_show_right, :project => @project) %>
94 <%= call_hook(:view_projects_show_right, :project => @project) %>
75 </div>
95 </div>
76
96
77 <% content_for :sidebar do %>
97 <% content_for :sidebar do %>
78 <%= render :partial => 'projects/sidebar' %>
98 <%= render :partial => 'projects/sidebar' %>
79 <% end %>
99 <% end %>
80
100
81 <% content_for :header_tags do %>
101 <% content_for :header_tags do %>
82 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
102 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
83 <% end %>
103 <% end %>
84
104
85 <% html_title(l(:label_overview)) -%>
105 <% html_title(l(:label_overview)) -%>
General Comments 0
You need to be logged in to leave comments. Login now