moviewyrm/bookwyrm/templates/ostatus/remote_follow.html

47 lines
2 KiB
HTML
Raw Normal View History

2021-11-28 09:08:54 +00:00
{% extends 'ostatus/template.html' %}
{% load i18n %}
{% load utilities %}
2021-11-30 09:46:41 +00:00
{% block heading %}
{% blocktrans with username=user.localname sitename=site.name %}Follow {{ username }} on the fediverse{% endblocktrans %}
{% endblock %}
2021-11-28 09:08:54 +00:00
{% block content %}
<div class="block card">
2021-11-29 08:37:56 +00:00
<div class="card-content">
<div class="media">
<a href="{{ user.local_path }}" class="media-left">
{% include 'snippets/avatar.html' with user=user large=True %}
</a>
<div class="media-content">
<a href="{{ user.local_path }}" class="is-block mb-2">
<span class="title is-4 is-block">
{{ user.display_name }}
{% if user.manually_approves_followers %}
<span class="icon icon-lock is-size-7" title="{% trans 'Locked account' %}">
<span class="is-sr-only">{% trans "Locked account" %}</span>
</span>
{% endif %}
</span>
<span class="subtitle is-7 is-block">@{{ user|username }}</span>
</a>
</div>
</div>
2021-11-28 09:08:54 +00:00
</div>
</div>
2021-11-30 09:46:41 +00:00
<div class="block">
2021-12-05 07:09:51 +00:00
<p>{% blocktrans with username=user.display_name %}Follow {{ username }} from another Fediverse account like BookWyrm, Mastodon, or Pleroma.{% endblocktrans %}</p>
2021-11-30 09:46:41 +00:00
</div>
2021-11-29 08:37:56 +00:00
<div class="card">
<section class="card-content content">
<form name="remote-follow" method="post" action="{% url 'remote-follow' %}">
{% csrf_token %}
<input type="hidden" name="user" value="{{ user.id }}">
<label class="label" for="remote_user">{% trans 'User handle to follow from:' %}</label>
2021-12-05 07:09:51 +00:00
<input class="input" type="text" name="remote_user" id="remote_user" placeholder="user@example.social" required>
2021-11-29 08:37:56 +00:00
<button class="button mt-1 is-primary" type="submit">{% trans 'Follow!' %}</button>
</form>
</section>
2021-11-28 09:08:54 +00:00
</div>
{% endblock %}