From edcc538e961a21c18566bf71fea02c0ef5bbd256 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 10 Apr 2007 22:33:10 +0000 Subject: Bug 377026: Replace all occurences of status_descs.FOO by get_status("FOO") (next step in supporting custom bug statuses) - Patch by Frédéric Buclin r=gerv a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/reports/report-bar.png.tmpl | 4 ++-- template/en/default/reports/report-line.png.tmpl | 4 ++-- template/en/default/reports/report-pie.png.tmpl | 2 +- template/en/default/reports/report-table.csv.tmpl | 4 ++-- template/en/default/reports/report-table.html.tmpl | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'template/en/default/reports') diff --git a/template/en/default/reports/report-bar.png.tmpl b/template/en/default/reports/report-bar.png.tmpl index 2c29a3558..f830e71da 100644 --- a/template/en/default/reports/report-bar.png.tmpl +++ b/template/en/default/reports/report-bar.png.tmpl @@ -29,7 +29,7 @@ [% IF col_field == 'bug_status' %] [% FOR i IN [ 0 .. data.0.0.max ] %] - [% data.0.0.$i = status_descs.${data.0.0.$i} %] + [% data.0.0.$i = get_status(data.0.0.$i) %] [% END %] [% END %] @@ -41,7 +41,7 @@ [% IF row_field == 'bug_status' %] [% FOR i IN [ 0 .. row_names.max ] %] - [% row_names.$i = status_descs.${row_names.$i} %] + [% row_names.$i = get_status(row_names.$i) %] [% END %] [% END %] diff --git a/template/en/default/reports/report-line.png.tmpl b/template/en/default/reports/report-line.png.tmpl index 24215af98..16d8eb0c1 100644 --- a/template/en/default/reports/report-line.png.tmpl +++ b/template/en/default/reports/report-line.png.tmpl @@ -29,7 +29,7 @@ [% IF col_field == 'bug_status' %] [% FOR i IN [ 0 .. data.0.0.max ] %] - [% data.0.0.$i = status_descs.${data.0.0.$i} %] + [% data.0.0.$i = get_status(data.0.0.$i) %] [% END %] [% END %] @@ -41,7 +41,7 @@ [% IF row_field == 'bug_status' %] [% FOR i IN [ 0 .. row_names.max ] %] - [% row_names.$i = status_descs.${row_names.$i} %] + [% row_names.$i = get_status(row_names.$i) %] [% END %] [% END %] diff --git a/template/en/default/reports/report-pie.png.tmpl b/template/en/default/reports/report-pie.png.tmpl index 3eb73b1b0..d5fb593ea 100644 --- a/template/en/default/reports/report-pie.png.tmpl +++ b/template/en/default/reports/report-pie.png.tmpl @@ -25,7 +25,7 @@ [% IF col_field == 'bug_status' %] [% FOR i IN [ 0 .. data.0.0.max ] %] - [% data.0.0.$i = status_descs.${data.0.0.$i} %] + [% data.0.0.$i = get_status(data.0.0.$i) %] [% END %] [% END %] diff --git a/template/en/default/reports/report-table.csv.tmpl b/template/en/default/reports/report-table.csv.tmpl index 2f7f867af..c57ef7733 100644 --- a/template/en/default/reports/report-table.csv.tmpl +++ b/template/en/default/reports/report-table.csv.tmpl @@ -42,7 +42,7 @@ [% FOREACH col = col_names -%] [% colsepchar %] [% IF col_field == 'bug_status' %] - [% status_descs.$col FILTER csv -%] + [% get_status(col) FILTER csv -%] [% ELSIF col_field == 'resolution' %] [% get_resolution(col) FILTER csv -%] [% ELSE %] @@ -55,7 +55,7 @@ [% FOREACH row = row_names %] [% IF row_field == 'bug_status' %] - [% status_descs.$row FILTER csv -%] + [% get_status(row) FILTER csv -%] [% ELSIF row_field == 'resolution' %] [% get_resolution(row) FILTER csv -%] [% ELSE %] diff --git a/template/en/default/reports/report-table.html.tmpl b/template/en/default/reports/report-table.html.tmpl index 60965d502..4ed384259 100644 --- a/template/en/default/reports/report-table.html.tmpl +++ b/template/en/default/reports/report-table.html.tmpl @@ -86,7 +86,7 @@ [% col_idx = 1 - col_idx %] [% IF col_field == 'bug_status' %] - [% status_descs.$col FILTER html FILTER replace('^ $',' ') %] + [% get_status(col) FILTER html FILTER replace('^ $',' ') %] [% ELSIF col_field == 'resolution' %] [% get_resolution(col) FILTER html FILTER replace('^ $',' ') %] [% ELSE %] @@ -107,7 +107,7 @@ [% IF row_field == 'bug_status' %] - [% status_descs.$row FILTER html FILTER replace('^ $',' ') %] + [% get_status(row) FILTER html FILTER replace('^ $',' ') %] [% ELSIF row_field == 'resolution' %] [% get_resolution(row) FILTER html FILTER replace('^ $',' ') %] [% ELSE %] -- cgit v1.2.3-24-g4f1b