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">
|
|
|
|
<a href="/user/{{ user.localname }}/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-01-29 23:10:32 +00:00
|
|
|
{% if not request.user in follower.followers.all %}
|
2020-02-22 20:57:13 +00:00
|
|
|
{% include 'snippets/follow_button.html' with user=user %}
|
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-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 %}
|