Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
28
app/views/reports/_details.html.erb
Normal file
28
app/views/reports/_details.html.erb
Normal file
|
@ -0,0 +1,28 @@
|
|||
<% if @statuses.empty? or rows.empty? %>
|
||||
<p><i><%=l(:label_no_data)%></i></p>
|
||||
<% else %>
|
||||
<table class="list issue-report">
|
||||
<thead><tr>
|
||||
<th></th>
|
||||
<% for status in @statuses %>
|
||||
<th><%= status.name %></th>
|
||||
<% end %>
|
||||
<th><strong><%=l(:label_open_issues_plural)%></strong></th>
|
||||
<th><strong><%=l(:label_closed_issues_plural)%></strong></th>
|
||||
<th><strong><%=l(:label_total)%></strong></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<% for row in rows %>
|
||||
<tr>
|
||||
<td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
|
||||
<% for status in @statuses %>
|
||||
<td><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td>
|
||||
<% end %>
|
||||
<td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
|
||||
<td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
|
||||
<td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
22
app/views/reports/_simple.html.erb
Normal file
22
app/views/reports/_simple.html.erb
Normal file
|
@ -0,0 +1,22 @@
|
|||
<% if @statuses.empty? or rows.empty? %>
|
||||
<p><i><%=l(:label_no_data)%></i></p>
|
||||
<% else %>
|
||||
<table class="list issue-report">
|
||||
<thead><tr>
|
||||
<th></th>
|
||||
<th><%=l(:label_open_issues_plural)%></th>
|
||||
<th><%=l(:label_closed_issues_plural)%></th>
|
||||
<th><%=l(:label_total)%></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<% for row in rows %>
|
||||
<tr>
|
||||
<td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
|
||||
<td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
|
||||
<td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
|
||||
<td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
75
app/views/reports/issue_report.html.erb
Normal file
75
app/views/reports/issue_report.html.erb
Normal file
|
@ -0,0 +1,75 @@
|
|||
<h2><%=l(:label_report_plural)%></h2>
|
||||
|
||||
<div class="splitcontentleft">
|
||||
<h3>
|
||||
<%=l(:field_tracker)%>
|
||||
<%= link_to l(:label_details),
|
||||
project_issues_report_details_path(@project, :detail => 'tracker'),
|
||||
:class => 'icon-only icon-zoom-in',
|
||||
:title => l(:label_details) %>
|
||||
</h3>
|
||||
<%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %>
|
||||
<br />
|
||||
<h3>
|
||||
<%=l(:field_priority)%>
|
||||
<%= link_to l(:label_details),
|
||||
project_issues_report_details_path(@project, :detail => 'priority'),
|
||||
:class => 'icon-only icon-zoom-in',
|
||||
:title => l(:label_details) %>
|
||||
</h3>
|
||||
<%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %>
|
||||
<br />
|
||||
<h3>
|
||||
<%=l(:field_assigned_to)%>
|
||||
<%= link_to l(:label_details),
|
||||
project_issues_report_details_path(@project, :detail => 'assigned_to'),
|
||||
:class => 'icon-only icon-zoom-in',
|
||||
:title => l(:label_details) %>
|
||||
</h3>
|
||||
<%= render :partial => 'simple', :locals => { :data => @issues_by_assigned_to, :field_name => "assigned_to_id", :rows => @assignees } %>
|
||||
<br />
|
||||
<h3>
|
||||
<%=l(:field_author)%>
|
||||
<%= link_to l(:label_details),
|
||||
project_issues_report_details_path(@project, :detail => 'author'),
|
||||
:class => 'icon-only icon-zoom-in',
|
||||
:title => l(:label_details) %>
|
||||
</h3>
|
||||
<%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %>
|
||||
<br />
|
||||
<%= call_hook(:view_reports_issue_report_split_content_left, :project => @project) %>
|
||||
</div>
|
||||
|
||||
<div class="splitcontentright">
|
||||
<h3>
|
||||
<%=l(:field_version)%>
|
||||
<%= link_to l(:label_details),
|
||||
project_issues_report_details_path(@project, :detail => 'version'),
|
||||
:class => 'icon-only icon-zoom-in',
|
||||
:title => l(:label_details) %>
|
||||
</h3>
|
||||
<%= render :partial => 'simple', :locals => { :data => @issues_by_version, :field_name => "fixed_version_id", :rows => @versions } %>
|
||||
<br />
|
||||
<% if @project.children.any? %>
|
||||
<h3>
|
||||
<%=l(:field_subproject)%>
|
||||
<%= link_to l(:label_details),
|
||||
project_issues_report_details_path(@project, :detail => 'subproject'),
|
||||
:class => 'icon-only icon-zoom-in',
|
||||
:title => l(:label_details) %>
|
||||
</h3>
|
||||
<%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %>
|
||||
<br />
|
||||
<% end %>
|
||||
<h3>
|
||||
<%=l(:field_category)%>
|
||||
<%= link_to l(:label_details),
|
||||
project_issues_report_details_path(@project, :detail => 'category'),
|
||||
:class => 'icon-only icon-zoom-in',
|
||||
:title => l(:label_details) %>
|
||||
</h3>
|
||||
<%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %>
|
||||
<br />
|
||||
<%= call_hook(:view_reports_issue_report_split_content_right, :project => @project) %>
|
||||
</div>
|
||||
|
7
app/views/reports/issue_report_details.html.erb
Normal file
7
app/views/reports/issue_report_details.html.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
<h2><%=l(:label_report_plural)%></h2>
|
||||
|
||||
<h3><%=@report_title%></h3>
|
||||
<%= render :partial => 'details', :locals => { :data => @data, :field_name => @field, :rows => @rows } %>
|
||||
<br />
|
||||
<%= link_to l(:button_back), project_issues_report_path(@project) %>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue