|
@@ -110,7 +110,7 @@
|
|
|
<!-- Edit Post -->
|
|
|
<a href="{{ url_for('forum.edit_post', post_id=post.id) }}" class="btn btn-icon icon-edit" data-toggle="tooltip" data-placement="top" title="Edit this post"></a>
|
|
|
{% endif %}
|
|
|
- {% if topic.first_post_id == post.id %}
|
|
|
+ {% if topic.first_post == post %}
|
|
|
{% if current_user|delete_topic(topic) %}
|
|
|
<form class="inline-form" method="post" action="{{ url_for('forum.delete_topic', topic_id=topic.id, slug=topic.slug) }}">
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|