diff options
author | mkanat%bugzilla.org <> | 2009-11-18 08:04:57 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-18 08:04:57 +0100 |
commit | a44e152480c9c22ca9b3a89da774317c5590d21b (patch) | |
tree | 035210618c0987beaffc953cbf09611866e0d3e5 /template/en/default/reports/report-bar.png.tmpl | |
parent | bc19f61c0c33e71a00dcc8e4ca3e791a9e3b661d (diff) | |
download | bugzilla-a44e152480c9c22ca9b3a89da774317c5590d21b.tar.gz bugzilla-a44e152480c9c22ca9b3a89da774317c5590d21b.tar.xz |
Bug 519142: Replace IF/ELSE statements about bug_status/resolution with just a display_value call, and use display_value in more places to translate field values.
Patch by Vitaly Fedrushkov <vitaly.fedrushkov@gmail.com> r=mkanat, a=mkanat
Diffstat (limited to 'template/en/default/reports/report-bar.png.tmpl')
-rw-r--r-- | template/en/default/reports/report-bar.png.tmpl | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/template/en/default/reports/report-bar.png.tmpl b/template/en/default/reports/report-bar.png.tmpl index cb9fab24f..649fba426 100644 --- a/template/en/default/reports/report-bar.png.tmpl +++ b/template/en/default/reports/report-bar.png.tmpl @@ -26,28 +26,12 @@ [% col_field_disp = field_descs.$col_field || col_field %] -[% IF col_field == 'bug_status' %] - [% FOR i IN [ 0 .. data.0.0.max ] %] - [% data.0.0.$i = display_value("bug_status", data.0.0.$i) %] - [% END %] +[% FOR i IN [ 0 .. data.0.0.max ] %] + [% data.0.0.$i = display_value(col_field, data.0.0.$i) %] [% END %] -[% IF col_field == 'resolution' %] - [% FOR i IN [ 0 .. data.0.0.max ] %] - [% data.0.0.$i = display_value("resolution", data.0.0.$i) %] - [% END %] -[% END %] - -[% IF row_field == 'bug_status' %] - [% FOR i IN [ 0 .. row_names.max ] %] - [% row_names.$i = display_value("bug_status", row_names.$i) %] - [% END %] -[% END %] - -[% IF row_field == 'resolution' %] - [% FOR i IN [ 0 .. row_names.max ] %] - [% row_names.$i = display_value("resolution", row_names.$i) %] - [% END %] +[% FOR i IN [ 0 .. row_names.max ] %] + [% row_names.$i = display_value(row_field, row_names.$i) %] [% END %] [% FILTER null; |