2021-02-27 21:43:17 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% load humanize %}
|
2021-05-11 22:14:42 +00:00
|
|
|
{% load utilities %}
|
2021-04-30 16:48:10 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-02-27 21:43:17 +00:00
|
|
|
|
|
|
|
<div class="media block">
|
|
|
|
<div class="media-left">
|
|
|
|
<a href="{{ user.local_path }}">
|
|
|
|
{% include 'snippets/avatar.html' with user=user large=True %}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="media-content">
|
|
|
|
<p>{% if user.name %}{{ user.name }}{% else %}{{ user.localname }}{% endif %}</p>
|
|
|
|
<p><a href="{{ user.remote_id }}">{{ user.username }}</a></p>
|
|
|
|
<p>{% blocktrans with date=user.created_date|naturaltime %}Joined {{ date }}{% endblocktrans %}</p>
|
|
|
|
<p>
|
2021-04-30 16:48:10 +00:00
|
|
|
{% if is_self %}
|
|
|
|
|
|
|
|
<a href="{% url 'user-followers' user|username %}">{% blocktrans count counter=user.followers.count %}{{ counter }} follower{% plural %}{{ counter }} followers{% endblocktrans %}</a>,
|
|
|
|
<a href="{% url 'user-following' user|username %}">{% blocktrans with counter=user.following.count %}{{ counter }} following{% endblocktrans %}</a>
|
|
|
|
|
2021-04-30 18:11:18 +00:00
|
|
|
{% elif request.user.is_authenticated %}
|
2021-04-30 16:48:10 +00:00
|
|
|
|
|
|
|
{% mutuals_count user as mutuals %}
|
|
|
|
<a href="{% url 'user-followers' user|username %}">
|
|
|
|
{% blocktrans with mutuals_display=mutuals|intcomma count counter=mutuals %}{{ mutuals_display }} follower you follow{% plural %}{{ mutuals_display }} followers you follow{% endblocktrans %}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{% endif %}
|
2021-02-27 21:43:17 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|