2017-08-18 22:31:30 +02:00
|
|
|
{% extends 'lib/layout.html' %}
|
|
|
|
{% block body %}
|
|
|
|
<section>
|
|
|
|
<h2>Log in with Mastodon</h2>
|
|
|
|
|
|
|
|
{% if generic_error %}
|
|
|
|
<div class='banner error'>Something went wrong while logging in. Try again?</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if address_error %}
|
|
|
|
<div class='banner error'>This doesn't look like a mastodon instance url. Try again?</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<form method='post'>
|
2017-08-23 11:42:32 +02:00
|
|
|
<label>Mastodon instance:
|
|
|
|
<input type='text' name='instance_url' list='instances' placeholder='social.example.net'/>
|
2017-08-18 22:31:30 +02:00
|
|
|
</label>
|
2017-08-23 11:42:32 +02:00
|
|
|
<datalist id='instances'>
|
|
|
|
<option value=''>
|
|
|
|
{% for instance in instances %}
|
2018-05-08 00:06:36 +02:00
|
|
|
<option value='{{instance}}'>
|
2017-08-23 11:42:32 +02:00
|
|
|
{% endfor %}
|
|
|
|
</datalist>
|
2017-08-18 22:31:30 +02:00
|
|
|
<input name='confirm' value='Log in' type='submit'/>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|