{% extends "base.html" %}

{% block title %}{{ g.user.readable_or_key_id() }}'s following - Bridgy Fed{% endblock %}

{% block content %}

{% include "user_addresses.html" %}

<div class="row big">Following</div>

{% if g.user.LABEL != 'activitypub' %}
<div class="row">
<form method="post" action="/follow/start">
<p>
 <label for="follower-address">Follow someone (requires <a href="https://indieauth.net/">IndieAuth</a>):</label>
 <input id="follower-address" name="address" type="text" required
        placeholder="@user@domain.social" alt="fediverse address"
        value="{{ address or '' }}"></input>
 <input name="me" type="hidden" value="{{ g.user.web_url() }}"></input>
 <button type="submit" class="btn btn-default">Follow</button>
</p>
</form>
</div>
{% endif %}

{% with page_name="following" %}
  {% include "_followers.html" %}
{% endwith %}

{% endblock %}
