~ubuntu-branches/ubuntu/intrepid/bugzilla/intrepid

« back to all changes in this revision

Viewing changes to template/en/default/reports/report-table.csv.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
[%# 1.0@bugzilla.org %]
2
 
[%# The contents of this file are subject to the Mozilla Public
3
 
  # License Version 1.1 (the "License"); you may not use this file
4
 
  # except in compliance with the License. You may obtain a copy of
5
 
  # the License at http://www.mozilla.org/MPL/
6
 
  #
7
 
  # Software distributed under the License is distributed on an "AS
8
 
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
 
  # implied. See the License for the specific language governing
10
 
  # rights and limitations under the License.
11
 
  #
12
 
  # The Original Code is the Bugzilla Bug Tracking System.
13
 
  #
14
 
  # The Initial Developer of the Original Code is Netscape Communications
15
 
  # Corporation. Portions created by Netscape are
16
 
  # Copyright (C) 1998 Netscape Communications Corporation. All
17
 
  # Rights Reserved.
18
 
  #
19
 
  # Contributor(s): Gervase Markham <gerv@gerv.net>
20
 
  #%]
21
 
[%# INTERFACE:
22
 
  # See report-table.html.tmpl.
23
 
  #%]
24
 
[% PROCESS global/variables.none.tmpl %]
25
 
 
26
 
[% colsepchar = user.settings.csv_colsepchar.value %]
27
 
 
28
 
[% num_bugs = BLOCK %]Number of [% terms.bugs %][% END %]
29
 
[% tbl_field_disp = field_descs.$tbl_field || tbl_field %]
30
 
[% col_field_disp = field_descs.$col_field || col_field %]
31
 
[% row_field_disp = field_descs.$row_field || row_field %]
32
 
 
33
 
[% IF tbl_field %]
34
 
  [% tbl_field_disp FILTER csv %]: [% tbl FILTER csv %]
35
 
[% END %]
36
 
[% IF row_field %]
37
 
  [% row_field_disp FILTER csv %]
38
 
[% END %]
39
 
[% " / " IF col_field AND row_field %]
40
 
[% col_field_disp FILTER csv %]
41
 
[% IF col_field -%]
42
 
  [% FOREACH col = col_names -%]
43
 
    [% colsepchar %]
44
 
    [% IF col_field == 'bug_status' %]
45
 
      [% status_descs.$col FILTER csv -%]
46
 
    [% ELSIF col_field == 'resolution' %]
47
 
      [% get_resolution(col) FILTER csv -%]
48
 
    [% ELSE %]
49
 
      [% col FILTER csv -%]
50
 
    [% END %]
51
 
  [% END -%]
52
 
[% ELSE -%]
53
 
  [% colsepchar %][% num_bugs FILTER csv %]
54
 
[% END %]
55
 
 
56
 
[% FOREACH row = row_names %]
57
 
  [% IF row_field == 'bug_status' %]
58
 
    [% status_descs.$row FILTER csv -%]
59
 
  [% ELSIF row_field == 'resolution' %]
60
 
    [% get_resolution(row) FILTER csv -%]
61
 
  [% ELSE %]
62
 
    [% row FILTER csv -%]
63
 
  [% END %]
64
 
  [% FOREACH col = col_names %]
65
 
    [% colsepchar %]
66
 
    [% IF data.$tbl AND data.$tbl.$col AND data.$tbl.$col.$row %]
67
 
      [% data.$tbl.$col.$row -%]
68
 
    [% ELSE %]
69
 
      [% -%]0
70
 
    [% END %]
71
 
  [% END %]
72
 
 
73
 
[% END %]