summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-04-11 00:33:10 +0200
committerlpsolit%gmail.com <>2007-04-11 00:33:10 +0200
commitedcc538e961a21c18566bf71fea02c0ef5bbd256 (patch)
tree95e8a888d9fbbba60eb6e0774dfcfcf6c87866f4 /template/en/default/reports
parent8918a55e52c9badc177a791a4e70b1033c6615b7 (diff)
downloadbugzilla-edcc538e961a21c18566bf71fea02c0ef5bbd256.tar.gz
bugzilla-edcc538e961a21c18566bf71fea02c0ef5bbd256.tar.xz
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 <LpSolit@gmail.com> r=gerv a=LpSolit
Diffstat (limited to 'template/en/default/reports')
-rw-r--r--template/en/default/reports/report-bar.png.tmpl4
-rw-r--r--template/en/default/reports/report-line.png.tmpl4
-rw-r--r--template/en/default/reports/report-pie.png.tmpl2
-rw-r--r--template/en/default/reports/report-table.csv.tmpl4
-rw-r--r--template/en/default/reports/report-table.html.tmpl4
5 files changed, 9 insertions, 9 deletions
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 %]
<td class="[% classes.$row_idx.$col_idx %]">
[% IF col_field == 'bug_status' %]
- [% status_descs.$col FILTER html FILTER replace('^ $','&nbsp;') %]
+ [% get_status(col) FILTER html FILTER replace('^ $','&nbsp;') %]
[% ELSIF col_field == 'resolution' %]
[% get_resolution(col) FILTER html FILTER replace('^ $','&nbsp;') %]
[% ELSE %]
@@ -107,7 +107,7 @@
<tr>
<td class="[% classes.$row_idx.$col_idx %]" align="right">
[% IF row_field == 'bug_status' %]
- [% status_descs.$row FILTER html FILTER replace('^ $','&nbsp;') %]
+ [% get_status(row) FILTER html FILTER replace('^ $','&nbsp;') %]
[% ELSIF row_field == 'resolution' %]
[% get_resolution(row) FILTER html FILTER replace('^ $','&nbsp;') %]
[% ELSE %]