moviewyrm/fedireads/templates/feed.html

46 lines
1.1 KiB
HTML
Raw Normal View History

2020-01-25 23:25:19 +00:00
{% extends 'layout.html' %}
2020-01-29 23:10:32 +00:00
{% load fr_display %}
2020-01-25 23:25:19 +00:00
{% block content %}
2020-02-21 23:39:25 +00:00
<div id="sidebar">
2020-01-29 01:23:38 +00:00
<div>
2020-02-21 23:39:25 +00:00
{% if shelves %}
{% for shelf in shelves %}
<h2>{{ shelf.name }}</h2>
{% for book in shelf.books %}
2020-01-29 08:05:58 +00:00
<div class="book-preview">
{% include 'snippets/book.html' with book=book size="small" %}
2020-01-29 08:05:58 +00:00
</div>
{% endfor %}
2020-02-21 23:39:25 +00:00
{% if shelf.size > shelf.books.count %}
2020-02-22 00:03:05 +00:00
<a href="/shelf/{{ user | username }}/{{ shelf.identifier }}">See all {{ shelf.size }}</a>
2020-01-25 23:25:19 +00:00
{% endif %}
2020-01-29 01:23:38 +00:00
{% endfor %}
2020-02-21 23:39:25 +00:00
{% else %}
<h2>Reading Activity</h2>
<p>Start a book!</p>
{% endif %}
2020-01-25 23:25:19 +00:00
</div>
2020-01-29 01:23:38 +00:00
<div>
<h2>Recently Added Books</h2>
2020-01-27 01:55:02 +00:00
{% for book in recent_books %}
<div class="book-preview">
{% include 'snippets/book.html' with book=book size="small" %}
2020-01-27 01:55:02 +00:00
</div>
{% endfor %}
</div>
2020-01-29 01:23:38 +00:00
</div>
2020-01-29 01:23:38 +00:00
<div id="feed">
{% include 'snippets/tabs.html' with tabs=feed_tabs active_tab=active_tab %}
2020-01-29 01:23:38 +00:00
2020-01-28 02:47:54 +00:00
{% for activity in activities %}
{% include 'snippets/status.html' with activity=activity %}
2020-01-28 02:47:54 +00:00
{% endfor %}
2020-01-25 23:25:19 +00:00
</div>
2020-01-25 23:25:19 +00:00
{% endblock %}