зеркало из https://github.com/mozilla/gecko-dev.git
Bug 296180: Table and CSV reports should use localised terms for statuses and resolutions - Patch by Emmanuel Seyman <eseyman@linagora.com> - r/a=myk
This commit is contained in:
Родитель
fded8f1054
Коммит
e2a4ed0c1e
|
@ -43,14 +43,26 @@
|
||||||
[% title %],
|
[% title %],
|
||||||
[% IF col_field -%]
|
[% IF col_field -%]
|
||||||
[% FOREACH col = col_names -%]
|
[% FOREACH col = col_names -%]
|
||||||
[% col FILTER csv -%],
|
[% IF col_field == 'bug_status' %]
|
||||||
|
[% status_descs.$col FILTER csv -%]
|
||||||
|
[% ELSIF col_field == 'resolution' %]
|
||||||
|
[% resolution_descs.$col FILTER csv -%]
|
||||||
|
[% ELSE %]
|
||||||
|
[% col FILTER csv -%],
|
||||||
|
[% END %]
|
||||||
[% END -%]
|
[% END -%]
|
||||||
[% ELSE -%]
|
[% ELSE -%]
|
||||||
[% num_bugs %],
|
[% num_bugs %],
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% FOREACH row = row_names %]
|
[% FOREACH row = row_names %]
|
||||||
[% row FILTER csv -%],
|
[% IF row_field == 'bug_status' %]
|
||||||
|
[% status_descs.$row FILTER csv -%]
|
||||||
|
[% ELSIF row_field == 'resolution' %]
|
||||||
|
[% resolution_descs.$row FILTER csv -%]
|
||||||
|
[% ELSE %]
|
||||||
|
[% row FILTER csv -%],
|
||||||
|
[% END %]
|
||||||
[% FOREACH col = col_names %]
|
[% FOREACH col = col_names %]
|
||||||
[% IF data.$tbl AND data.$tbl.$col AND data.$tbl.$col.$row %]
|
[% IF data.$tbl AND data.$tbl.$col AND data.$tbl.$col.$row %]
|
||||||
[% data.$tbl.$col.$row -%],
|
[% data.$tbl.$col.$row -%],
|
||||||
|
|
|
@ -85,7 +85,13 @@
|
||||||
|
|
||||||
[% col_idx = 1 - col_idx %]
|
[% col_idx = 1 - col_idx %]
|
||||||
<td class="[% classes.$row_idx.$col_idx %]">
|
<td class="[% classes.$row_idx.$col_idx %]">
|
||||||
[% col FILTER html FILTER replace('^ $',' ') %]
|
[% IF col_field == 'bug_status' %]
|
||||||
|
[% status_descs.$col FILTER html FILTER replace('^ $',' ') %]
|
||||||
|
[% ELSIF col_field == 'resolution' %]
|
||||||
|
[% resolution_descs.$col FILTER html FILTER replace('^ $',' ') %]
|
||||||
|
[% ELSE %]
|
||||||
|
[% col FILTER html FILTER replace('^ $',' ') %]
|
||||||
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
[% END %]
|
[% END %]
|
||||||
<td class="ttotal">
|
<td class="ttotal">
|
||||||
|
@ -100,7 +106,13 @@
|
||||||
[% row_idx = 1 - row_idx %]
|
[% row_idx = 1 - row_idx %]
|
||||||
<tr>
|
<tr>
|
||||||
<td class="[% classes.$row_idx.$col_idx %]" align="right">
|
<td class="[% classes.$row_idx.$col_idx %]" align="right">
|
||||||
[% row FILTER html FILTER replace('^ $',' ') %]
|
[% IF row_field == 'bug_status' %]
|
||||||
|
[% status_descs.$row FILTER html FILTER replace('^ $',' ') %]
|
||||||
|
[% ELSIF row_field == 'resolution' %]
|
||||||
|
[% resolution_descs.$row FILTER html FILTER replace('^ $',' ') %]
|
||||||
|
[% ELSE %]
|
||||||
|
[% row FILTER html FILTER replace('^ $',' ') %]
|
||||||
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
[% FOREACH col = col_names %]
|
[% FOREACH col = col_names %]
|
||||||
[% row_total = row_total + data.$tbl.$col.$row %]
|
[% row_total = row_total + data.$tbl.$col.$row %]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче