moviewyrm/bookwyrm/templates/ostatus/remote_follow_button.html

16 lines
706 B
HTML
Raw Normal View History

2021-11-28 09:08:54 +00:00
{% load i18n %}
{% if request.user == user %}
{% else %}
<div class="field mb-0">
<div class="control">
2021-11-28 20:56:31 +00:00
<a class="button is-small is-link" href="{% url 'remote-follow-page' %}?user={{ user.username }}" target="_blank" rel="noopener noreferrer" onclick="BookWyrm.displayPopUp(`{% url 'remote-follow-page' %}?user={{ user.username }}`, `remoteFollow`); return false;" aria-describedby="remote_follow_warning">
2021-11-28 10:16:57 +00:00
{% blocktrans with username=user.localname %}Follow on Fediverse{% endblocktrans %}
</a>
2021-11-28 09:08:54 +00:00
</div>
2021-11-28 20:56:31 +00:00
<p id="remote_follow_warning" class="mt-1 is-size-7 has-text-weight-light">
{% trans 'This link opens in a pop-up window' %}
</p>
2021-11-28 09:08:54 +00:00
</div>
{% endif %}