summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-01-04 18:44:35 +0100
committerlpsolit%gmail.com <>2009-01-04 18:44:35 +0100
commit26428bd5366a710abf864745ce2706e482b86aa9 (patch)
treeb9abb336efb3bd525f6deec5dda3c7c8843793a9 /template
parent8ecc07050fd3d7d9b6bd136511ee4c8098f7c500 (diff)
downloadbugzilla-26428bd5366a710abf864745ce2706e482b86aa9.tar.gz
bugzilla-26428bd5366a710abf864745ce2706e482b86aa9.tar.xz
Bug 316425: Summarize time estimates on buglist page - Patch by Aaron Larson <aaron@larsonsonline.net> r=wicked a=LpSolit
Diffstat (limited to 'template')
-rw-r--r--template/en/default/list/table.html.tmpl33
1 files changed, 33 insertions, 0 deletions
diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl
index 667d077f8..9b27b0094 100644
--- a/template/en/default/list/table.html.tmpl
+++ b/template/en/default/list/table.html.tmpl
@@ -223,7 +223,40 @@
# end the current table.
#%]
[% IF loop.last() || loop.count() % 100 == 0 %]
+ [% IF loop.last() && time_info.time_present == 1 %]
+ [% PROCESS time_summary_line %]
+ [% END %]
</table>
[% END %]
[% END %]
+
+
+[% BLOCK time_summary_line %]
+ <tr class="bz_time_summary_line">
+ [% columns_to_span = 1 %] [%# bugID %]
+ [% IF dotweak %]
+ [% columns_to_span = columns_to_span + 1 %]
+ [% END %]
+ [% FOREACH column = displaycolumns %]
+ [% IF column == 'actual_time' ||
+ column == 'remaining_time' ||
+ column == 'estimated_time' ||
+ column == 'percentage_complete' %]
+ [% IF columns_to_span > 0 %]
+ <td class="bz_total_label" colspan="[% columns_to_span FILTER html %]"><b>Totals</b></td>
+ [% columns_to_span = 0 %]
+ [% END %]
+ [% IF column == 'percentage_complete' %]
+ <td>[% time_info.percentage_complete FILTER format(abbrev.$column.format_value) FILTER html -%]</td>
+ [% ELSE %]
+ <td>[% PROCESS formattimeunit time_unit=time_info.$column %]</td>
+ [% END %]
+ [% ELSIF columns_to_span == 0 %] [%# A column following the first total %]
+ <td>&nbsp;</td>
+ [% ELSE %] [%# We haven't gotten to a time column yet, keep computing span %]
+ [% columns_to_span = columns_to_span + 1 %]
+ [% END %]
+ [% END %]
+ </tr>
+[% END %]