From 26428bd5366a710abf864745ce2706e482b86aa9 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 4 Jan 2009 17:44:35 +0000 Subject: Bug 316425: Summarize time estimates on buglist page - Patch by Aaron Larson r=wicked a=LpSolit --- template/en/default/list/table.html.tmpl | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'template/en/default/list') 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 %] [% END %] [% END %] + + +[% BLOCK 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 %] + Totals + [% columns_to_span = 0 %] + [% END %] + [% IF column == 'percentage_complete' %] + [% time_info.percentage_complete FILTER format(abbrev.$column.format_value) FILTER html -%] + [% ELSE %] + [% PROCESS formattimeunit time_unit=time_info.$column %] + [% END %] + [% ELSIF columns_to_span == 0 %] [%# A column following the first total %] +   + [% ELSE %] [%# We haven't gotten to a time column yet, keep computing span %] + [% columns_to_span = columns_to_span + 1 %] + [% END %] + [% END %] + +[% END %] -- cgit v1.2.3-24-g4f1b