1 [%# This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 # This Source Code Form is "Incompatible With Secondary Licenses", as
6 # defined by the Mozilla Public License, v. 2.0.
10 [% IF Param('user_info_class').split(',').contains('GitHubAuth') %]
11 <script [% script_nonce FILTER none %] type="text/javascript">
12 YAHOO.util.Event.addListener('login_link[% qs_suffix FILTER js %]','click', function () {
13 var login_link = YAHOO.util.Dom.get('github_mini_login[% qs_suffix FILTER js %]');
14 YAHOO.util.Dom.removeClass(login_link, 'bz_default_hidden');
16 YAHOO.util.Event.addListener('hide_mini_login[% qs_suffix FILTER js %]','click', function () {
17 var login_link = YAHOO.util.Dom.get('github_mini_login[% qs_suffix FILTER js %]');
18 YAHOO.util.Dom.addClass(login_link, 'bz_default_hidden');
21 <span id="github_mini_login[% qs_suffix FILTER html %]" class="bz_default_hidden">
22 <form method="post" action="[% urlbase FILTER html %]github.cgi">
23 <input type="hidden" name="github_secret" value="[% Bugzilla.github_secret FILTER html %]">
24 <input type="hidden" name="target_uri" value="[% Bugzilla.cgi.target_uri FILTER html %]">
25 <input type="image" src="extensions/GitHubAuth/web/images/sign_in.png" height="22" width="75" align="absmiddle"
26 alt="Sign in with GitHub"
27 title="Sign in with GitHub"> or