diff options
author | Israel Madueme <purelogiq@gmail.com> | 2018-05-01 23:32:45 +0200 |
---|---|---|
committer | dklawren <dklawren@users.noreply.github.com> | 2018-05-01 23:32:45 +0200 |
commit | 39f6b6e1f5f602f31fa7cd844809a4a7d4e579d2 (patch) | |
tree | 5960a00591ea57d6e25290ec66f8537c5f231222 /extensions/OrangeFactor/template/en/default/hook | |
parent | 9184ec2442347f0c4f7a4c0b4e4436ea8d41e875 (diff) | |
download | bugzilla-39f6b6e1f5f602f31fa7cd844809a4a7d4e579d2.tar.gz bugzilla-39f6b6e1f5f602f31fa7cd844809a4a7d4e579d2.tar.xz |
Bug 1453759 - Port OrangeFactor extension to treeherder
Diffstat (limited to 'extensions/OrangeFactor/template/en/default/hook')
-rw-r--r-- | extensions/OrangeFactor/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl | 9 | ||||
-rw-r--r-- | extensions/OrangeFactor/template/en/default/hook/bug_modal/edit-details_rhs.html.tmpl | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/extensions/OrangeFactor/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl b/extensions/OrangeFactor/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl index a41188a63..1eedab479 100644 --- a/extensions/OrangeFactor/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl +++ b/extensions/OrangeFactor/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl @@ -17,9 +17,14 @@ <td> [% IF cgi.user_agent.match('(?i)gecko') %] <canvas id="orange-graph" class="bz_default_hidden"></canvas> - <span id="orange-count"></span> + <span id="orange-count" + style="display:none;" + data-date-start="[% date_start FILTER html %]" + data-date-end="[% date_end FILTER html %]" + data-bug-id="[% bug.bug_id FILTER html %]"> + </span> [% END %] - (<a href="https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=[% bug.bug_id FILTER uri %]" + (<a href="https://treeherder.mozilla.org/intermittent-failures.html#/bugdetails?startday=[% date_start FILTER uri %]&endday=[% date_end FILTER uri %]&tree=trunk&bug=[% bug.bug_id FILTER uri %]" title="Click to load Orange Factor page for this [% terms.bug %]">link</a>) </td> </tr> 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 index 30cd65cd2..d6ee5f127 100644 --- 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 @@ -16,10 +16,15 @@ %] [% IF cgi.user_agent.match('(?i)gecko') %] <canvas id="orange-graph" style="display:none;"></canvas> - <span id="orange-count" style="display:none;"></span> + <span id="orange-count" + style="display:none;" + data-date-start="[% date_start FILTER html %]" + data-date-end="[% date_end FILTER html %]" + data-bug-id="[% bug.bug_id FILTER html %]"> + </span> [% END %] <span id="orange-link"> - (<a href="https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=[% bug.bug_id FILTER uri %]" + (<a href="https://treeherder.mozilla.org/intermittent-failures.html#/bugdetails?startday=[% date_start FILTER uri %]&endday=[% date_end FILTER uri %]&tree=trunk&bug=[% bug.bug_id FILTER uri %]" title="Click to load Orange Factor page for this [% terms.bug %]">link</a>) </span> [% END %] |