2020-01-26 20:14:27 +00:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
{% block content %}
|
2020-01-29 23:10:32 +00:00
|
|
|
<div id="sidebar">
|
2020-01-26 20:14:27 +00:00
|
|
|
<div class="user-profile">
|
2020-01-29 23:10:32 +00:00
|
|
|
<h2>
|
2020-02-11 05:23:21 +00:00
|
|
|
{% include 'snippets/avatar.html' with user=user %}
|
2020-01-29 23:10:32 +00:00
|
|
|
{% if user.name %}{{ user.name }}{% endif %}
|
|
|
|
<small>{{ user.username }}</small>
|
|
|
|
</h2>
|
2020-01-29 07:23:05 +00:00
|
|
|
{% if user.summary %}
|
2020-02-15 04:24:35 +00:00
|
|
|
<blockquote>{{ user.summary | safe }}</blockquote>
|
2020-01-29 07:23:05 +00:00
|
|
|
{% endif %}
|
2020-01-26 20:14:27 +00:00
|
|
|
{% if not is_self %}
|
2020-02-22 20:57:13 +00:00
|
|
|
{% include 'snippets/follow_button.html' with user=user %}
|
2020-01-26 20:14:27 +00:00
|
|
|
{% endif %}
|
2020-01-27 02:49:57 +00:00
|
|
|
|
2020-01-29 23:10:32 +00:00
|
|
|
{% if is_self %}
|
|
|
|
<div class="interaction">
|
2020-02-22 22:02:03 +00:00
|
|
|
<a href="/user/edit">Edit profile</a>
|
2020-01-27 02:49:57 +00:00
|
|
|
</div>
|
2020-01-29 23:10:32 +00:00
|
|
|
{% endif %}
|
2020-01-27 02:49:57 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>Followers</h2>
|
|
|
|
{% for follower in user.followers.all %}
|
2020-01-27 06:47:32 +00:00
|
|
|
<div>
|
|
|
|
<a href="{{ follower.actor }}">{{ follower.username }}</a>
|
2020-02-24 15:23:14 +00:00
|
|
|
{% if not request.user in follower.followers.all and request.user != follower %}
|
2020-02-22 22:27:31 +00:00
|
|
|
{% include 'snippets/follow_button.html' with user=follower %}
|
2020-01-29 23:10:32 +00:00
|
|
|
{% endif %}
|
2020-01-27 06:47:32 +00:00
|
|
|
</div>
|
2020-01-27 02:49:57 +00:00
|
|
|
{% endfor %}
|
2020-01-26 20:14:27 +00:00
|
|
|
</div>
|
2020-02-24 15:23:14 +00:00
|
|
|
|
|
|
|
<div>
|
|
|
|
<h2>Following</h2>
|
|
|
|
{% for following in user.following.all %}
|
|
|
|
<div>
|
|
|
|
<a href="{{ following.actor }}">{{ following.username }}</a>
|
|
|
|
{% if not request.user in following.followers.all and request.user != following %}
|
|
|
|
{% include 'snippets/follow_button.html' with user=following %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
2020-01-29 23:10:32 +00:00
|
|
|
</div>
|
2020-01-26 20:14:27 +00:00
|
|
|
|
2020-01-29 23:10:32 +00:00
|
|
|
<div id="content">
|
|
|
|
{% for shelf in shelves %}
|
|
|
|
<div>
|
2020-01-29 23:32:43 +00:00
|
|
|
<h2>{{ shelf.name }}</h2>
|
2020-02-22 00:03:05 +00:00
|
|
|
{% include 'snippets/shelf.html' with shelf=shelf ratings=ratings %}
|
2020-01-29 23:10:32 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-01-26 20:14:27 +00:00
|
|
|
</div>
|
2020-01-29 23:10:32 +00:00
|
|
|
|
2020-01-26 20:14:27 +00:00
|
|
|
{% endblock %}
|