minor fixes
This commit is contained in:
parent
9ae55c92ba
commit
e0d1abc1e9
@ -36,7 +36,6 @@ def thread(slug):
|
|||||||
page = max(1, min(page_count, int(request.args.get("page", default = 1))))
|
page = max(1, min(page_count, int(request.args.get("page", default = 1))))
|
||||||
|
|
||||||
posts = thread.get_posts(POSTS_PER_PAGE, (page - 1) * POSTS_PER_PAGE)
|
posts = thread.get_posts(POSTS_PER_PAGE, (page - 1) * POSTS_PER_PAGE)
|
||||||
print(posts)
|
|
||||||
topic = Topics.find({"id": thread.topic_id})
|
topic = Topics.find({"id": thread.topic_id})
|
||||||
other_topics = Topics.select()
|
other_topics = Topics.select()
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
{{ full_post(post = post, active_user = active_user, is_latest = loop.index0 == (posts | length)) }}
|
{{ full_post(post = post, active_user = active_user, is_latest = loop.index == (posts | length)) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
{% if can_post %}
|
{% if can_post %}
|
||||||
<h1>Respond to "{{ thread.title }}"</h1>
|
<h1>Respond to "{{ thread.title }}"</h1>
|
||||||
{{ babycode_editor_form(ta_name = post_content)}}
|
{{ babycode_editor_form(ta_name = "post_content")}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<dialog id="delete-dialog">
|
<dialog id="delete-dialog">
|
||||||
|
Loading…
Reference in New Issue
Block a user