diff options
author | Dylan William Hardison <dylan@hardison.net> | 2015-03-04 04:27:15 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2015-04-03 00:21:08 +0200 |
commit | c0d00a57eebb31d3e2cdef0ebb9219ebe2fe2bab (patch) | |
tree | e6c6eb07c7348e086f1ed6de54de829e806dda05 /extensions/GitHubAuth/template/en/default/account | |
parent | 1317be9bb70dbb945fa82d0d1bd8548c83c86ebe (diff) | |
download | bugzilla-c0d00a57eebb31d3e2cdef0ebb9219ebe2fe2bab.tar.gz bugzilla-c0d00a57eebb31d3e2cdef0ebb9219ebe2fe2bab.tar.xz |
Github Auth Extension
Diffstat (limited to 'extensions/GitHubAuth/template/en/default/account')
-rw-r--r-- | extensions/GitHubAuth/template/en/default/account/auth/github-verify-account.html.tmpl | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/extensions/GitHubAuth/template/en/default/account/auth/github-verify-account.html.tmpl b/extensions/GitHubAuth/template/en/default/account/auth/github-verify-account.html.tmpl new file mode 100644 index 000000000..ba528b390 --- /dev/null +++ b/extensions/GitHubAuth/template/en/default/account/auth/github-verify-account.html.tmpl @@ -0,0 +1,48 @@ +[%# 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. + #%] + +[%# Input: github_emails, bugzilla_emails. + # This template will not be called when bugzilla_emails.size == 1 + # or when both github_emails.size == 0 && bugzilla_emails.size == 0 + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% PROCESS global/header.html.tmpl + title = "Choose Account" +%] + +[% IF bugzilla_users %] + <h1>Choose Account</h1> + + <p>It seems that more than one [% terms.Bugzilla %] account connected to + your GitHub account. You may choose to login by clicking the link below.</p> + + <ul class="bugzilla_emails"> + [% FOREACH bz_user IN bugzilla_users %] + <li><a href="[% choose_email(bz_user.email) FILTER html %]">[% bz_user.email FILTER html %]</a></li> + [% END %] + </ul> +[% ELSE %] + <h1>Account Not In [% terms.Bugzilla %]</h1> + + [% IF github_emails.size == 1 %] + <p>The email '[% github_emails.0 FILTER html %]' was not found in [% terms.Bugzilla %] and will need to be created to log in.</p> + + <a href="[% choose_email(github_emails.0) FILTER html %]">Create Account</a> + [% ELSE %] + <p>You have multiple email addresses associated with your GitHub account. + Which one should be used to create your [% terms.Bugzilla %] account?</p> + + [% FOREACH email IN github_emails %] + <li><a href="[% choose_email(email) FILTER html %]">[% email FILTER html %]</a></li> + [% END %] + [% END %] +[% END %] + +[% PROCESS global/footer.html.tmpl %] |