moviewyrm/bookwyrm/templates/ostatus/ostatus_subscribe.html

63 lines
2.1 KiB
HTML
Raw Normal View History

2021-11-28 01:43:29 +00:00
{% extends 'ostatus/template.html' %}
{% load i18n %}
{% load utilities %}
{% load markdown %}
2021-11-28 02:28:58 +00:00
{% block title %}
{% if not request.user.is_authenticated %}
{% trans "Log in to " %}
{% elif error %}
{% trans "Error following from " %}
2021-11-28 01:43:29 +00:00
{% else %}
2021-11-28 02:28:58 +00:00
{% trans "Follow from " %}
{% endif %}
{% endblock %}
2021-11-28 01:43:29 +00:00
2021-11-28 02:28:58 +00:00
{% block heading %}
{% if not request.user.is_authenticated %}
{% trans "Let's log in first..." %}
{% elif error %}
{% trans 'Uh oh...' %}
{% else %}
{% blocktrans %}Follow from {{ site.name }}{% endblocktrans %}
{% endif %}
{% endblock %}
2021-11-28 01:43:29 +00:00
{% block content %}
2021-11-28 02:28:58 +00:00
{% if error or not request.user.is_authenticated %}
{% include 'ostatus/ostatus_error.html' with error=error user=user account=account %}
{% else %}
2021-11-28 01:43:29 +00:00
<div class="block card">
<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>
<form name="follow" method="post" action="">
{% csrf_token %}
<button class="button is-link" type="submit">{% trans "Follow " %} {{ user.name }}</button>
</form>
</div>
</div>
<div class="">
{% if user.summary %}
{{ user.summary|to_markdown|safe|truncatechars_html:120 }}
{% else %}&nbsp;{% endif %}
</div>
</div>
</div>
{% endif %}
2021-11-28 02:28:58 +00:00
{% endblock %}