Allow users to discard their own topics

This commit is contained in:
rubenwardy
2018-12-25 17:51:29 +00:00
parent c726f56b3e
commit 09150a4dbb
6 changed files with 63 additions and 36 deletions

View File

@@ -134,11 +134,20 @@
<p class="card-body">
List of your forum topics which do not have a matching package.
Topics with a strikethrough have beened marked as discarded.
</p>
{% from "macros/topics.html" import render_topics_table %}
{{ render_topics_table(topics_to_add, show_author=False) }}
{{ render_topics_table(topics_to_add, show_author=False, show_discard=True, current_user=current_user) }}
</div>
{% endif %}
{% endblock %}
{% block scriptextra %}
<script>
var csrf_token = "{{ csrf_token() }}";
</script>
<script src="/static/topic_discard.js"></script>
{% endblock %}