|
@@ -20,7 +20,7 @@
|
|
{% if current_user|post_reply(topic.forum) and not topic.locked %}
|
|
{% if current_user|post_reply(topic.forum) and not topic.locked %}
|
|
<a href="{{ url_for('forum.new_post', topic_id=topic.id) }}" class="btn btn-primary">Reply</a>
|
|
<a href="{{ url_for('forum.new_post', topic_id=topic.id) }}" class="btn btn-primary">Reply</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
- {% if current_user|delete_topic(topic, topic.forum) %}
|
|
|
|
|
|
+ {% if current_user|delete_topic(topic.first_post.user_id, topic.forum) %}
|
|
<a href="{{ url_for('forum.delete_topic', topic_id=topic.id) }}" class="btn btn-primary">Delete Topic</a>
|
|
<a href="{{ url_for('forum.delete_topic', topic_id=topic.id) }}" class="btn btn-primary">Delete Topic</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
@@ -103,10 +103,10 @@
|
|
</span>
|
|
</span>
|
|
|
|
|
|
<span class="pull-right">
|
|
<span class="pull-right">
|
|
- {% if current_user|edit_post(post, topic.forum) %}
|
|
|
|
|
|
+ {% if current_user|edit_post(post.user_id, topic.forum) %}
|
|
<a href="{{ url_for('forum.edit_post', post_id=post.id) }}">Edit</a> |
|
|
<a href="{{ url_for('forum.edit_post', post_id=post.id) }}">Edit</a> |
|
|
{% endif %}
|
|
{% endif %}
|
|
- {% if current_user|delete_post(post, topic.forum) %}
|
|
|
|
|
|
+ {% if current_user|delete_post(post.user_id, topic.forum) %}
|
|
<a href="{{ url_for('forum.delete_post', post_id=post.id) }}">Delete</a> |
|
|
<a href="{{ url_for('forum.delete_post', post_id=post.id) }}">Delete</a> |
|
|
{% endif %}
|
|
{% endif %}
|
|
<a href="#">Quote</a>
|
|
<a href="#">Quote</a>
|