diff options
author | Matt Selsky <selsky@columbia.edu> | 2014-12-15 18:47:48 +0100 |
---|---|---|
committer | Gervase Markham <gerv@gerv.net> | 2014-12-15 18:47:48 +0100 |
commit | adc3c7a7b51bd32732d1f65aa9da180c1e6e15d8 (patch) | |
tree | 5c2a4825b7f0aac15556dfe4ee29129cb238c4db /template/en/default/reports | |
parent | f264250ff423e53d44fee297b5648f437c910d02 (diff) | |
download | bugzilla-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.tmpl | 13 | ||||
-rw-r--r-- | template/en/default/reports/report-bar.png.tmpl | 13 | ||||
-rw-r--r-- | template/en/default/reports/report-line.png.tmpl | 13 | ||||
-rw-r--r-- | template/en/default/reports/report-pie.png.tmpl | 7 |
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 %] |