moviewyrm/bookwyrm/templates/feed.html

56 lines
1.9 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
2020-09-30 00:43:30 +00:00
<div class="columns">
<div class="column">
<div class="tabs is-small is-toggle">
<ul>
{% for book in user_books|slice:3 %}
<li class="{% if forloop.first %}is-active{% endif %}" data-id="tab-book-{{ book.id }}">
<label for="book-{{ book.id }}" onclick="tabChange(event)"><a>{% include 'snippets/book_cover.html' with book=book size="medium" %}</a></label>
</li>
{% endfor %}
</ul>
</div>
{% for book in user_books|slice:3 %}
<div>
<input class="toggle-control" type="radio" name="recent-books" id="book-{{ book.id }}" {% if forloop.first %}checked{% endif %}>
<div class="toggle-content hidden">
2020-09-30 03:01:57 +00:00
<div class="block">{% include 'snippets/book_titleby.html' with book=book %}</div>
2020-09-30 00:43:30 +00:00
{% include 'snippets/create_status.html' with book=book %}
</div>
</div>
{% endfor %}
2020-09-29 17:21:10 +00:00
</div>
2020-01-25 23:25:19 +00:00
2020-09-30 00:51:57 +00:00
<div class="column is-two-thirds" id="feed">
2020-09-30 00:43:30 +00:00
{% for activity in activities %}
<div class="block">
{% include 'snippets/status.html' with status=activity %}
</div>
{% endfor %}
2020-09-30 00:43:30 +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>
</div>
2020-09-29 17:21:10 +00:00
</div>
2020-01-25 23:25:19 +00:00
{% endblock %}