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