summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports
diff options
context:
space:
mode:
authorMatt Selsky <selsky@columbia.edu>2014-12-15 18:47:48 +0100
committerGervase Markham <gerv@gerv.net>2014-12-15 18:47:48 +0100
commitadc3c7a7b51bd32732d1f65aa9da180c1e6e15d8 (patch)
tree5c2a4825b7f0aac15556dfe4ee29129cb238c4db /template/en/default/reports
parentf264250ff423e53d44fee297b5648f437c910d02 (diff)
downloadbugzilla-adc3c7a7b51bd32732d1f65aa9da180c1e6e15d8.tar.gz
bugzilla-adc3c7a7b51bd32732d1f65aa9da180c1e6e15d8.tar.xz
Bug 950486: Move the webdotbase and font_file parameters from data/params into localconfig (and kill the Graphs panel). r=gerv, a=glob.
Diffstat (limited to 'template/en/default/reports')
-rw-r--r--template/en/default/reports/chart.png.tmpl13
-rw-r--r--template/en/default/reports/report-bar.png.tmpl13
-rw-r--r--template/en/default/reports/report-line.png.tmpl13
-rw-r--r--template/en/default/reports/report-pie.png.tmpl7
4 files changed, 25 insertions, 21 deletions
diff --git a/template/en/default/reports/chart.png.tmpl b/template/en/default/reports/chart.png.tmpl
index 91944fee5..336efda2a 100644
--- a/template/en/default/reports/chart.png.tmpl
+++ b/template/en/default/reports/chart.png.tmpl
@@ -34,12 +34,13 @@
END;
-%]
-[% IF Param("font_file") %]
- [% graph.set_x_axis_font(Param("font_file"), 9);
- graph.set_x_label_font(Param("font_file"), 10);
- graph.set_y_axis_font(Param("font_file"), 9);
- graph.set_y_label_font(Param("font_file"), 10);
- graph.set_legend_font(Param("font_file"), 9);
+[% USE Bugzilla %]
+[% IF Bugzilla.localconfig.font_file %]
+ [% graph.set_x_axis_font(Bugzilla.localconfig.font_file, 9);
+ graph.set_x_label_font(Bugzilla.localconfig.font_file, 10);
+ graph.set_y_axis_font(Bugzilla.localconfig.font_file, 9);
+ graph.set_y_label_font(Bugzilla.localconfig.font_file, 10);
+ graph.set_legend_font(Bugzilla.localconfig.font_file, 9);
%]
[% END %]
diff --git a/template/en/default/reports/report-bar.png.tmpl b/template/en/default/reports/report-bar.png.tmpl
index d879f6dd1..3f0faa5d9 100644
--- a/template/en/default/reports/report-bar.png.tmpl
+++ b/template/en/default/reports/report-bar.png.tmpl
@@ -36,12 +36,13 @@
END;
-%]
-[% IF Param("font_file") %]
- [% graph.set_x_axis_font(Param("font_file"), 9);
- graph.set_x_label_font(Param("font_file"), 10);
- graph.set_y_axis_font(Param("font_file"), 9);
- graph.set_y_label_font(Param("font_file"), 10);
- graph.set_legend_font(Param("font_file"), 9);
+[% USE Bugzilla %]
+[% IF Bugzilla.localconfig.font_file %]
+ [% graph.set_x_axis_font(Bugzilla.localconfig.font_file, 9);
+ graph.set_x_label_font(Bugzilla.localconfig.font_file, 10);
+ graph.set_y_axis_font(Bugzilla.localconfig.font_file, 9);
+ graph.set_y_label_font(Bugzilla.localconfig.font_file, 10);
+ graph.set_legend_font(Bugzilla.localconfig.font_file, 9);
%]
[% END %]
diff --git a/template/en/default/reports/report-line.png.tmpl b/template/en/default/reports/report-line.png.tmpl
index 585133afd..a4baff641 100644
--- a/template/en/default/reports/report-line.png.tmpl
+++ b/template/en/default/reports/report-line.png.tmpl
@@ -38,12 +38,13 @@
END;
-%]
-[% IF Param("font_file") %]
- [% graph.set_x_axis_font(Param("font_file"), 9);
- graph.set_x_label_font(Param("font_file"), 10);
- graph.set_y_axis_font(Param("font_file"), 9);
- graph.set_y_label_font(Param("font_file"), 10);
- graph.set_legend_font(Param("font_file"), 9);
+[% USE Bugzilla %]
+[% IF Bugzilla.localconfig.font_file %]
+ [% graph.set_x_axis_font(Bugzilla.localconfig.font_file, 9);
+ graph.set_x_label_font(Bugzilla.localconfig.font_file, 10);
+ graph.set_y_axis_font(Bugzilla.localconfig.font_file, 9);
+ graph.set_y_label_font(Bugzilla.localconfig.font_file, 10);
+ graph.set_legend_font(Bugzilla.localconfig.font_file, 9);
%]
[% END %]
diff --git a/template/en/default/reports/report-pie.png.tmpl b/template/en/default/reports/report-pie.png.tmpl
index cc2a1325a..6808cfb77 100644
--- a/template/en/default/reports/report-pie.png.tmpl
+++ b/template/en/default/reports/report-pie.png.tmpl
@@ -20,9 +20,10 @@
END;
-%]
-[% IF Param("font_file") %]
- [% graph.set_title_font(Param("font_file"), 10);
- graph.set_value_font(Param("font_file"), 9);
+[% USE Bugzilla %]
+[% IF Bugzilla.localconfig.font_file %]
+ [% graph.set_title_font(Bugzilla.localconfig.font_file, 10);
+ graph.set_value_font(Bugzilla.localconfig.font_file, 9);
%]
[% END %]