2018-07-18 23:45:49 +02:00
|
|
|
{% extends "zerver/portico_signup.html" %}
|
|
|
|
|
|
|
|
{% block portico_content %}
|
|
|
|
<div class="register-account flex full-page new-style" id="choose_email">
|
2019-08-02 16:44:05 +02:00
|
|
|
<div class="lead">
|
2018-07-18 23:45:49 +02:00
|
|
|
{% trans %}
|
2019-08-02 16:44:05 +02:00
|
|
|
<h1 class="get-started">Select account</h1>
|
2018-07-18 23:45:49 +02:00
|
|
|
{% endtrans %}
|
|
|
|
</div>
|
|
|
|
|
2019-08-03 12:01:07 +02:00
|
|
|
<div class="white-box">
|
2018-07-18 23:45:49 +02:00
|
|
|
<form method="post" class="form-horizontal" action="/complete/{{ backend }}/">
|
2019-08-03 12:01:07 +02:00
|
|
|
<div class="choose-email-box">
|
2018-07-18 23:45:49 +02:00
|
|
|
<input type="hidden" name="email" value="{{ primary_email }}" />
|
2019-08-03 12:01:07 +02:00
|
|
|
{% if avatar_urls[primary_email] %}
|
|
|
|
<img src="{{ avatar_urls[primary_email] }}" alt=""/>
|
|
|
|
{% else %}
|
|
|
|
<i class="fa fa-plus" aria-hidden="true"></i>
|
|
|
|
{% endif %}
|
|
|
|
<div>
|
|
|
|
<p class="email">
|
|
|
|
{{ primary_email }}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
GitHub primary
|
|
|
|
{% if avatar_urls[primary_email] %}
|
|
|
|
- Log in
|
|
|
|
{% else %}
|
|
|
|
- Create new account
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
2018-07-18 23:45:49 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% for email in verified_non_primary_emails %}
|
|
|
|
<form method="post" class="form-horizontal" action="/complete/{{ backend }}/">
|
2019-08-03 12:01:07 +02:00
|
|
|
<div class="choose-email-box">
|
2018-07-18 23:45:49 +02:00
|
|
|
<input type="hidden" name="email" value="{{ email }}" />
|
2019-08-03 12:01:07 +02:00
|
|
|
{% if avatar_urls[email] %}
|
|
|
|
<img src="{{ avatar_urls[email] }}" alt="" class="no-drag"/>
|
|
|
|
{% else %}
|
|
|
|
<i class="fa fa-plus" aria-hidden="true"></i>
|
|
|
|
{% endif %}
|
|
|
|
<div>
|
|
|
|
<p class="email">
|
|
|
|
{{ email }}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{% if avatar_urls[email] %}
|
|
|
|
Log in
|
|
|
|
{% else %}
|
|
|
|
Create new account
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
2018-07-18 23:45:49 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2019-08-03 12:01:07 +02:00
|
|
|
<p class="bottom-text">
|
2019-08-02 16:44:05 +02:00
|
|
|
Only verified GitHub email addresses are listed.
|
2019-08-03 12:01:07 +02:00
|
|
|
</p>
|
2018-07-18 23:45:49 +02:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|