]> git.ipfire.org Git - thirdparty/bugzilla.git/blob
adcd9e067031dd82a262746fd2c83fcffce23856
[thirdparty/bugzilla.git] /
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/.
4 #
5 # This Source Code Form is "Incompatible With Secondary Licenses", as
6 # defined by the Mozilla Public License, v. 2.0.
7 #%]
8 [% USE Bugzilla %]
9
10 [% IF Param('user_info_class').split(',').contains('GitHubAuth') %]
11 <script 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');
15 });
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');
19 });
20 </script>
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
28 </form>
29 </span>
30 [% END %]