moviewyrm/bookwyrm/templates/user.html

80 lines
2.2 KiB
HTML
Raw Normal View History

2020-01-26 20:14:27 +00:00
{% extends 'layout.html' %}
{% block content %}
2020-11-10 21:39:37 +00:00
<div class="columns">
<div class="column">
<h1 class="title">User profile</h1>
</div>
{% if is_self %}
<div class="column is-narrow">
<a href="/user-edit/">
<span class="icon icon-pencil">
<span class="is-sr-only">Edit profile</span>
</span>
</a>
</div>
{% endif %}
</div>
2020-11-06 20:02:25 +00:00
{% include 'snippets/user_header.html' with user=user %}
2020-09-30 02:44:00 +00:00
<div class="block">
<h2 class="title">Shelves</h2>
<div class="columns">
{% for shelf in shelves %}
<div class="column is-narrow">
<h3>{{ shelf.name }}
2020-12-31 01:36:35 +00:00
{% if shelf.size > 3 %}<small>(<a href="{{ shelf.local_path }}">See all {{ shelf.size }}</a>)</small>{% endif %}</h3>
2020-09-30 02:44:00 +00:00
<div class="is-mobile field is-grouped">
{% for book in shelf.books %}
2020-09-30 04:45:59 +00:00
<div class="control">
2020-12-31 01:36:35 +00:00
<a href="{{ book.local_path }}">
2020-09-30 04:45:59 +00:00
{% include 'snippets/book_cover.html' with book=book size="medium" %}
</a>
</div>
2020-09-30 02:44:00 +00:00
{% endfor %}
</div>
</div>
{% endfor %}
</div>
2020-12-31 01:36:35 +00:00
<small><a href="{{ user.local_path }}/shelves">See all {{ shelf_count }} shelves</a></small>
2020-09-29 20:17:29 +00:00
</div>
2020-01-26 20:14:27 +00:00
2020-03-16 23:10:59 +00:00
<div>
2020-09-29 20:17:29 +00:00
<div class="block">
<h2 class="title">User Activity</h2>
</div>
2020-03-16 23:10:59 +00:00
{% for activity in activities %}
2020-09-29 20:17:29 +00:00
<div class="block">
2020-03-16 23:10:59 +00:00
{% include 'snippets/status.html' with status=activity %}
2020-01-29 23:10:32 +00:00
</div>
{% endfor %}
2020-03-17 00:09:45 +00:00
{% if not activities %}
2020-09-30 16:00:33 +00:00
<div class="block">
2020-03-17 00:09:45 +00:00
<p>No activities yet!</a>
</div>
{% endif %}
2020-11-11 18:43:47 +00:00
<nav class="pagination" role="navigation" aria-label="pagination">
{% if prev %}
<p class="pagination-previous">
<a href="{{ prev }}">
<span class="icon icon-arrow-left"></span>
Previous
</a>
</p>
{% endif %}
{% if next %}
<p class="pagination-next">
<a href="{{ next }}">
Next
<span class="icon icon-arrow-right"></span>
</a>
</p>
{% endif %}
</nav>
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 %}