Feature #691 » 691-v3.patch
app/assets/stylesheets/application.css | ||
---|---|---|
348 | 348 |
tr.idnt-9 td.subject, tr.idnt-9 td.name {padding-left: 152px; background-position: 136px 50%;} |
349 | 349 | |
350 | 350 |
table.issue-report {table-layout:fixed;} |
351 |
table.issue-report tr.total, table.issue-report-detailed tr.total { font-weight: bold; border-top:2px solid #d0d7de;} |
|
351 | 352 |
.issue-report-graph {width: 75%; margin: 2em 0;} |
352 | 353 | |
353 | 354 |
tr.entry td { white-space: nowrap; } |
app/views/reports/_details.html.erb | ||
---|---|---|
24 | 24 |
</tr> |
25 | 25 |
<% end %> |
26 | 26 |
</tbody> |
27 |
<tfoot> |
|
28 |
<tr class="total"> |
|
29 |
<td><%= l(:label_total) %></td> |
|
30 |
<% for status in @statuses %> |
|
31 |
<td><%= aggregate data, { "status_id" => status.id } %></td> |
|
32 |
<% end %> |
|
33 |
<td><%= aggregate data, { "closed" => 0 } %></td> |
|
34 |
<td><%= aggregate data, { "closed" => 1 } %></td> |
|
35 |
<td><%= aggregate data, { } %></td> |
|
36 |
</tr> |
|
37 |
</tfoot> |
|
27 | 38 |
</table> |
28 | 39 |
<% other_formats_links do |f| %> |
29 | 40 |
<%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '330px'); return false;" %> |
app/views/reports/_simple.html.erb | ||
---|---|---|
17 | 17 |
<td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*", :subproject_id => nil) %></td> |
18 | 18 |
</tr> |
19 | 19 |
<% end %> |
20 |
<tfoot> |
|
21 |
<tr class="total"> |
|
22 |
<td><%= l(:label_total) %></td> |
|
23 |
<td><%= aggregate data, { "closed" => 0 } %></td> |
|
24 |
<td><%= aggregate data, { "closed" => 1 } %></td> |
|
25 |
<td><%= aggregate data, { } %></td> |
|
26 |
</tr> |
|
27 |
</tfoot> |
|
20 | 28 |
</tbody> |
21 | 29 |
</table> |
22 | 30 |
<% end %> |
test/functional/reports_controller_test.rb | ||
---|---|---|
208 | 208 |
assert_select ':nth-child(9)', :text => '1' # closed |
209 | 209 |
assert_select ':nth-child(10)', :text => '3' # total |
210 | 210 |
end |
211 |
assert_select 'table.list tfoot :nth-child(1)' do |
|
212 |
assert_select 'td', :text => 'Totals' |
|
213 |
assert_select ':nth-child(2)', :text => '3' # status:1 |
|
214 |
assert_select ':nth-child(3)', :text => '0' # status:2 |
|
215 |
assert_select ':nth-child(4)', :text => '0' # status:3 |
|
216 |
assert_select ':nth-child(5)', :text => '0' # status:4 |
|
217 |
assert_select ':nth-child(6)', :text => '1' # status:5 |
|
218 |
assert_select ':nth-child(8)', :text => '3' # open |
|
219 |
assert_select ':nth-child(9)', :text => '1' # closed |
|
220 |
assert_select ':nth-child(10)', :text => '4' # total |
|
221 |
end |
|
211 | 222 |
end |
212 | 223 | |
213 | 224 |
def test_get_issue_report_details_by_assignee_should_show_non_assigned_issue_count |
- « Previous
- 1
- 2
- 3
- 4
- Next »