summaryrefslogtreecommitdiffstats
path: root/extensions/OrangeFactor/template/en/default/hook/bug_modal/edit-details_rhs.html.tmpl
blob: d6ee5f127e5a3b29178f94fc2cf85d30633a7a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[%# 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;"
            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://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 %]
[% END %]