add remote follow templates

This commit is contained in:
Hugh Rundle
2021-11-28 20:08:54 +11:00
parent e275b98183
commit 2e428e6ea1
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{% load i18n %}
{% if request.user == user %}
{% else %}
<div class="field mb-0">
<div class="control">
<form method="GET" action="{% url 'remote-follow-page' %}" >
{% csrf_token %}
<input type="hidden" name="user" value="{{ user.username }}">
<button class="button is-small{% if not minimal %} is-link{% endif %}" type="submit">
{% blocktrans with username=user.localname %}Follow on Fediverse{% endblocktrans %}
</button>
</form>
</div>
</div>
{% endif %}