{% extends "master.html" %}

{% block title %}Login · Anitya{% endblock %}

{% block body %}
<div class="socialaccount_ballot">
  <ul class="socialaccount_providers list-inline">
    {% for name, backend in available_backends.items() %}
      <li>
	{% if name == 'openid'%}
          <form role="form" action="{{url_for('social.auth', backend=name)}}" method="post">
            <input name="openid_identifier" placeholder="https://id.openid.server">
            <span class="pull-right">
                <button type="submit" class="btn btn-success">
                    <span class="glyphicon glyphicon-plus"></span>
                    Login</button>
            </span>
          </form>
        {% elif name == 'google-oauth2' %}
          <a title="{{ Google }}" class="socialaccount_provider openid btn btn-default"
             href="{{url_for('social.auth', backend=name)}}">Google</a>
        {% else %}
          <a title="{{ name.capitalize() }}" class="socialaccount_provider openid btn btn-default"
             href="{{url_for('social.auth', backend=name)}}">{{ name.capitalize() }}</a>
        {% endif %}
      </li>
    {% endfor %}
  </ul>
</div>
{% endblock %}
