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
|
|
|
|
2020-03-15 21:15:36 +00:00
|
|
|
<div class="all-shelves content-container">
|
|
|
|
{% for shelf in shelves %}
|
|
|
|
{% if shelf.books %}
|
2020-01-29 01:23:38 +00:00
|
|
|
<div>
|
2020-03-15 21:15:36 +00:00
|
|
|
<h2>{{ shelf.name }}
|
|
|
|
{% if shelf.size > shelf.books|length %}
|
|
|
|
<small>(<a href="/shelf/{{ user | username }}/{{ shelf.identifier }}">See all {{ shelf.size }}</a>)</small>
|
|
|
|
{% endif %}
|
|
|
|
</h2>
|
|
|
|
<div class="covers-shelf {{ shelf.identifier }}">
|
|
|
|
{% for book in shelf.books %}
|
|
|
|
<div class="book-preview" onclick="show_compose(this)" id="book-{{ book.id }}">
|
|
|
|
{% include 'snippets/book_cover.html' with book=book %}
|
|
|
|
{% include 'snippets/shelve_button.html' with book=book %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-01-29 08:05:58 +00:00
|
|
|
</div>
|
2020-01-25 23:25:19 +00:00
|
|
|
</div>
|
2020-03-15 21:15:36 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-01-25 23:25:19 +00:00
|
|
|
|
2020-03-15 21:15:36 +00:00
|
|
|
{% for shelf in shelves %}
|
|
|
|
{% for book in shelf.books %}
|
|
|
|
<div class="compose-suggestion" id="compose-book-{{ book.id }}">
|
|
|
|
<span class="close icon icon-close" onclick="hide_element(this)">
|
|
|
|
<span class="hidden-text">Close</span>
|
|
|
|
</span>
|
|
|
|
<div class="content-container">
|
|
|
|
{% include 'snippets/create_status.html' with book=book user=request.user %}
|
2020-01-27 01:55:02 +00:00
|
|
|
</div>
|
2020-01-29 01:23:38 +00:00
|
|
|
</div>
|
2020-03-15 21:15:36 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
2020-02-23 22:26:03 +00:00
|
|
|
|
2020-01-29 01:23:38 +00:00
|
|
|
<div id="feed">
|
2020-03-15 21:15:36 +00:00
|
|
|
<div class="content-container tabs">
|
2020-02-23 22:26:03 +00:00
|
|
|
{% include 'snippets/tabs.html' with tabs=feed_tabs active_tab=active_tab %}
|
2020-03-15 21:15:36 +00:00
|
|
|
</div>
|
2020-01-29 01:23:38 +00:00
|
|
|
|
2020-01-28 02:47:54 +00:00
|
|
|
{% for activity in activities %}
|
2020-03-15 21:15:36 +00:00
|
|
|
<div class="content-container">
|
|
|
|
{% include 'snippets/status.html' with status=activity %}
|
|
|
|
</div>
|
2020-01-28 02:47:54 +00:00
|
|
|
{% endfor %}
|
2020-01-25 23:25:19 +00:00
|
|
|
</div>
|
2020-02-23 22:26:03 +00:00
|
|
|
|
2020-03-15 21:15:36 +00:00
|
|
|
<script src="/static/js/feed.js"></script>
|
2020-01-25 23:25:19 +00:00
|
|
|
{% endblock %}
|