summaryrefslogtreecommitdiffstats
path: root/extensions/OrangeFactor/template/en
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-06-01 17:48:35 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-06-01 17:48:35 +0200
commit407add6f1ad02e5dc907a154bd334ea76e7411b2 (patch)
tree7a05b98864f98c9de5b280e452eaa534387de5cc /extensions/OrangeFactor/template/en
parenta092e46153b5bf826fcc88f4908122f7f3e96370 (diff)
downloadbugzilla-407add6f1ad02e5dc907a154bd334ea76e7411b2.tar.gz
bugzilla-407add6f1ad02e5dc907a154bd334ea76e7411b2.tar.xz
Bug 1153105 - add orange factor to modal view
Diffstat (limited to 'extensions/OrangeFactor/template/en')
-rw-r--r--extensions/OrangeFactor/template/en/default/hook/bug_modal/edit-details_rhs.html.tmpl26
-rw-r--r--extensions/OrangeFactor/template/en/default/hook/bug_modal/header-end.html.tmpl17
2 files changed, 43 insertions, 0 deletions
diff --git a/extensions/OrangeFactor/template/en/default/hook/bug_modal/edit-details_rhs.html.tmpl b/extensions/OrangeFactor/template/en/default/hook/bug_modal/edit-details_rhs.html.tmpl
new file mode 100644
index 000000000..30cd65cd2
--- /dev/null
+++ b/extensions/OrangeFactor/template/en/default/hook/bug_modal/edit-details_rhs.html.tmpl
@@ -0,0 +1,26 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[% USE Bugzilla %]
+[% cgi = Bugzilla.cgi %]
+
+[% IF orange_factor %]
+ [% WRAPPER bug_modal/field.html.tmpl
+ label = "Orange Factor"
+ editable = 0
+ %]
+ [% IF cgi.user_agent.match('(?i)gecko') %]
+ <canvas id="orange-graph" style="display:none;"></canvas>
+ <span id="orange-count" style="display:none;"></span>
+ [% END %]
+ <span id="orange-link">
+ (<a href="https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=[% bug.bug_id FILTER uri %]"
+ title="Click to load Orange Factor page for this [% terms.bug %]">link</a>)
+ </span>
+ [% END %]
+[% END %]
diff --git a/extensions/OrangeFactor/template/en/default/hook/bug_modal/header-end.html.tmpl b/extensions/OrangeFactor/template/en/default/hook/bug_modal/header-end.html.tmpl
new file mode 100644
index 000000000..b41431dcf
--- /dev/null
+++ b/extensions/OrangeFactor/template/en/default/hook/bug_modal/header-end.html.tmpl
@@ -0,0 +1,17 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[% USE Bugzilla %]
+[% cgi = Bugzilla.cgi %]
+
+[% IF orange_factor && cgi.user_agent.match('(?i)gecko') %]
+ [% style_urls.push('extensions/OrangeFactor/web/style/orangefactor.css') %]
+ [% javascript_urls.push('extensions/OrangeFactor/web/js/sparklines.min.js') %]
+ [% javascript_urls.push('extensions/OrangeFactor/web/js/orange_factor.js') %]
+[% END %]
+