2020-01-26 20:14:27 +00:00
|
|
|
{% extends 'layout.html' %}
|
2020-03-16 23:10:59 +00:00
|
|
|
{% load humanize %}
|
2020-01-26 20:14:27 +00:00
|
|
|
{% block content %}
|
2020-03-16 23:10:59 +00:00
|
|
|
<div class="content-container user-profile">
|
|
|
|
<h2>User Profile
|
|
|
|
{% if is_self %}
|
|
|
|
<a href="/user-edit/">edit
|
|
|
|
<span class="icon icon-pencil">
|
|
|
|
<span class="hidden-text">Edit profile</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
2020-01-26 20:14:27 +00:00
|
|
|
{% endif %}
|
2020-03-16 23:10:59 +00:00
|
|
|
</h2>
|
2020-01-27 02:49:57 +00:00
|
|
|
|
2020-03-16 23:10:59 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="pic-container">
|
|
|
|
{% include 'snippets/avatar.html' with user=user large=True %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<p>{% if user.name %}{{ user.name }}{% else %}{{ user.localname }}{% endif %}</p>
|
|
|
|
<p>{{ user.username }}</p>
|
|
|
|
<p>Joined {{ user.created_date | naturaltime }}</p>
|
2020-01-27 02:49:57 +00:00
|
|
|
</div>
|
2020-03-16 23:10:59 +00:00
|
|
|
|
|
|
|
{% if user.summary %}
|
|
|
|
<blockquote><span class="icon icon-quote-open"></span>{{ user.summary | safe }}</blockquote>
|
2020-01-29 23:10:32 +00:00
|
|
|
{% endif %}
|
2020-01-27 02:49:57 +00:00
|
|
|
</div>
|
2020-03-16 23:10:59 +00:00
|
|
|
{% if not is_self %}
|
|
|
|
{% include 'snippets/follow_button.html' with user=user %}
|
|
|
|
{% endif %}
|
2020-03-13 14:34:40 +00:00
|
|
|
|
|
|
|
{% if is_self and user.follower_requests.all %}
|
2020-03-16 23:10:59 +00:00
|
|
|
<div class="follow-requests">
|
2020-03-13 14:34:40 +00:00
|
|
|
<h2>Follow Requests</h2>
|
|
|
|
{% for requester in user.follower_requests.all %}
|
2020-03-16 23:10:59 +00:00
|
|
|
<div class="row shrink">
|
|
|
|
<p>
|
|
|
|
{% include 'snippets/username.html' with user=requester show_full=True %}
|
|
|
|
</p>
|
2020-03-13 14:58:30 +00:00
|
|
|
{% include 'snippets/follow_request_buttons.html' with user=requester %}
|
2020-03-13 14:34:40 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-02-24 15:23:14 +00:00
|
|
|
|
2020-03-16 23:10:59 +00:00
|
|
|
</div>
|
2020-02-24 15:23:14 +00:00
|
|
|
|
2020-03-16 23:10:59 +00:00
|
|
|
<div class="all-shelves content-container">
|
|
|
|
{% include 'snippets/covers_shelf.html' with shelves=shelves user=user %}
|
2020-01-29 23:10:32 +00:00
|
|
|
</div>
|
2020-01-26 20:14:27 +00:00
|
|
|
|
2020-03-16 23:10:59 +00:00
|
|
|
<div>
|
|
|
|
<div class="content-container"><h2>User Activity</h2></div>
|
|
|
|
{% for activity in activities %}
|
|
|
|
<div class="content-container">
|
|
|
|
{% include 'snippets/status.html' with status=activity %}
|
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 %}
|