2020-01-26 12:14:27 -08:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
{% block content %}
|
2020-02-24 15:23:14 +00:00
|
|
|
|
2020-09-29 13:17:29 -07:00
|
|
|
<div class="block">
|
2020-09-29 19:44:00 -07:00
|
|
|
{% include 'user_header.html' with user=user %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
|
<h2 class="title">Shelves</h2>
|
|
|
|
<div class="columns">
|
|
|
|
{% for shelf in shelves %}
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<h3>{{ shelf.name }}
|
|
|
|
{% if shelf.size > 3 %}<small>(<a href="{{ shelf.remote_id }}">See all {{ shelf.size }}</a>)</small>{% endif %}</h3>
|
|
|
|
<div class="is-mobile field is-grouped">
|
|
|
|
{% for book in shelf.books %}
|
2020-09-29 21:45:59 -07:00
|
|
|
<div class="control">
|
|
|
|
<a href="/book/{{ book.id }}">
|
|
|
|
{% include 'snippets/book_cover.html' with book=book size="medium" %}
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-09-29 19:44:00 -07:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<small><a href="/user/{{ user.localname }}/shelves">See all {{ shelf_count }} shelves</a></small>
|
2020-09-29 13:17:29 -07:00
|
|
|
</div>
|
2020-01-26 12:14:27 -08:00
|
|
|
|
2020-03-16 16:10:59 -07:00
|
|
|
<div>
|
2020-09-29 13:17:29 -07:00
|
|
|
<div class="block">
|
|
|
|
<h2 class="title">User Activity</h2>
|
|
|
|
</div>
|
2020-03-16 16:10:59 -07:00
|
|
|
{% for activity in activities %}
|
2020-09-29 13:17:29 -07:00
|
|
|
<div class="block">
|
2020-03-16 16:10:59 -07:00
|
|
|
{% include 'snippets/status.html' with status=activity %}
|
2020-01-29 15:10:32 -08:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-03-16 17:09:45 -07:00
|
|
|
{% if not activities %}
|
2020-09-30 09:00:33 -07:00
|
|
|
<div class="block">
|
2020-03-16 17:09:45 -07:00
|
|
|
<p>No activities yet!</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-01-26 12:14:27 -08:00
|
|
|
</div>
|
2020-01-29 15:10:32 -08:00
|
|
|
|
2020-01-26 12:14:27 -08:00
|
|
|
{% endblock %}
|