{% extends "base.html" %}

{% block content %}
<p>You are logged in as {{ user.username }}!</p>

<p>Associated:</p>
{% for assoc in backends.associated %}
  <div>
    {{ assoc.provider }}
    <form method="post" action="{{ url_for("social.disconnect", backend=assoc.provider, association_id=assoc.id) }}">
      <button>Disconnect</button>
    </form>
  </div>
{% endfor %}

<p>Associate:</p>
<ul>
  {% for name in backends.not_associated %}
    <li>
      <a href="{{ url_for("social.auth", backend=name) }}">{{ name }}</a>
    </li>
  {% endfor %}
</ul>
{% endblock %}
