forked from mirrors/bookwyrm
Feed page cleanup
This commit is contained in:
parent
c236be4303
commit
24d9839d07
2 changed files with 3 additions and 5 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<h2 class="title is-3">Recent Books</h2>
|
||||
<div class="tabs is-small is-toggle">
|
||||
<ul>
|
||||
{% for book in user_books|slice:3 %}
|
||||
|
@ -18,6 +17,7 @@
|
|||
<div>
|
||||
<input class="toggle-control" type="radio" name="recent-books" id="book-{{ book.id }}" {% if forloop.first %}checked{% endif %}>
|
||||
<div class="toggle-content hidden">
|
||||
<div class="block">{% include 'snippets/book_titleby.html' with book=book %}</div>
|
||||
{% include 'snippets/create_status.html' with book=book %}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -25,7 +25,6 @@
|
|||
</div>
|
||||
|
||||
<div class="column is-two-thirds" id="feed">
|
||||
<h2 class="title is-3">Updates</h2>
|
||||
{% for activity in activities %}
|
||||
<div class="block">
|
||||
{% include 'snippets/status.html' with status=activity %}
|
||||
|
|
|
@ -5,11 +5,10 @@
|
|||
<div class="media-left">
|
||||
{% for book in status.mention_books.all|slice:"0:4" %}
|
||||
<div>
|
||||
{% include 'snippets/book_cover.html' with book=book %}
|
||||
<a href="/book/{{ book.id }}">{% include 'snippets/book_cover.html' with book=book %}</a>
|
||||
{% if status.mention_books.count > 1 %}
|
||||
<p>{% include 'snippets/book_titleby.html' with book=book %}</p>
|
||||
{% endif %}
|
||||
{% include 'snippets/rate_action.html' with book=book user=request.user %}
|
||||
{% include 'snippets/shelve_button.html' with book=book %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
@ -19,7 +18,7 @@
|
|||
{% if not hide_book and status.book %}
|
||||
<div class="media-left">
|
||||
<div>
|
||||
{% include 'snippets/book_cover.html' with book=status.book %}
|
||||
<a href="/book/{{ status.book.id }}">{% include 'snippets/book_cover.html' with book=status.book %}</a>
|
||||
{% include 'snippets/rate_action.html' with book=status.book user=request.user %}
|
||||
{% include 'snippets/shelve_button.html' with book=status.book %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue