~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

Viewing changes to template/en/default/reports/report-line.png.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
 
 
22
 
[% PROCESS global/variables.none.tmpl %]
23
 
 
24
 
[% y_label = "$terms.Bugs" %]
25
 
 
26
 
[% PROCESS "global/field-descs.none.tmpl" %]
27
 
 
28
 
[% col_field_disp = field_descs.$col_field || col_field %]
29
 
 
30
 
[% IF col_field == 'bug_status' %]
31
 
  [% FOR i IN [ 0 .. data.0.0.max ] %]
32
 
    [% data.0.0.$i = status_descs.${data.0.0.$i} %]
33
 
  [% END %]
34
 
[% END %]
35
 
 
36
 
[% IF col_field == 'resolution' %]
37
 
  [% FOR i IN [ 0 .. data.0.0.max ] %]
38
 
    [% data.0.0.$i = get_resolution(data.0.0.$i) %]
39
 
  [% END %]
40
 
[% END %]
41
 
 
42
 
[% IF row_field == 'bug_status' %]
43
 
  [% FOR i IN [ 0 .. row_names.max ] %]
44
 
    [% row_names.$i = status_descs.${row_names.$i} %]
45
 
  [% END %]
46
 
[% END %]
47
 
 
48
 
[% IF row_field == 'resolution' %]
49
 
  [% FOR i IN [ 0 .. row_names.max ] %]
50
 
    [% row_names.$i = get_resolution(row_names.$i) %]
51
 
  [% END %]
52
 
[% END %]
53
 
 
54
 
[% IF cumulate %]
55
 
  [% USE graph = GD.Graph.area(width, height) %]
56
 
  [% graph.set(cumulate => "true") %]
57
 
[% ELSE %]
58
 
  [% USE graph = GD.Graph.lines(width, height) %]
59
 
[% END %]
60
 
 
61
 
[% FILTER null;
62
 
  graph.set(x_label           => col_field_disp,
63
 
            y_label           => y_label,
64
 
            y_tick_number     => 8,
65
 
            x_label_position  => 0.5,
66
 
            x_labels_vertical => x_labels_vertical,
67
 
            legend_placement  => "RT",
68
 
            line_width        => 2,
69
 
            dclrs             => ["lred", "lgreen", "lblue", "lyellow",
70
 
                                  "lpurple", "lorange", "black", "green",
71
 
                                  "blue", "dpink", "lbrown", "gray", 
72
 
                                  "red", "dpurple", "gold", "marine"]);
73
 
 
74
 
  # Workaround for the fact that set_legend won't take row_names directly,
75
 
  # because row_names is an array reference rather than an array.
76
 
  graph.set_legend(row_names.0, row_names.1, row_names.2, row_names.3,
77
 
                   row_names.4, row_names.5, row_names.6, row_names.7,
78
 
                   row_names.8, row_names.9, row_names.10, row_names.11,
79
 
                   row_names.12, row_names.13, row_names.14, row_names.15);
80
 
 
81
 
  graph.plot(data.0).png | stdout(1);
82
 
  END;
83
 
-%]
84