-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1153105 - add orange factor to modal view
- Loading branch information
Showing
6 changed files
with
126 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
extensions/OrangeFactor/template/en/default/hook/bug_modal/edit-details_rhs.html.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %] |
17 changes: 17 additions & 0 deletions
17
extensions/OrangeFactor/template/en/default/hook/bug_modal/header-end.html.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,7 @@ | |
height: 38px; | ||
margin: 0 .5em .5em 0; | ||
} | ||
|
||
#orange-count, #orange-link { | ||
color: #666; | ||
} |