forked from mirrors/bookwyrm
Page to feed for mobile
This commit is contained in:
parent
50f2f4788e
commit
67411824eb
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="column is-two-thirds">
|
<div class="column is-two-thirds" id="feed">
|
||||||
<h2 class="title is-3">Updates</h2>
|
<h2 class="title is-3">Updates</h2>
|
||||||
{% for activity in activities %}
|
{% for activity in activities %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
|
|
|
@ -64,8 +64,8 @@ def home_tab(request, tab):
|
||||||
activity_count = activities.count()
|
activity_count = activities.count()
|
||||||
activities = activities[(page - 1) * page_size:page * page_size]
|
activities = activities[(page - 1) * page_size:page * page_size]
|
||||||
|
|
||||||
next_page = '/?page=%d' % (page + 1)
|
next_page = '/?page=%d#feed' % (page + 1)
|
||||||
prev_page = '/?page=%d' % (page - 1)
|
prev_page = '/?page=%d#feed' % (page - 1)
|
||||||
data = {
|
data = {
|
||||||
'user': request.user,
|
'user': request.user,
|
||||||
'user_books': user_books,
|
'user_books': user_books,
|
||||||
|
|
Loading…
Reference in a new issue