aboutsummaryrefslogtreecommitdiff
path: root/app/templates/users
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-25 17:51:29 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-25 17:51:29 +0000
commit09150a4dbb74e9fb0d9fe4bdc5ced3ac246cd0e9 (patch)
tree6a79e990698c72053a396456f04ed8b7af0d4981 /app/templates/users
parentc726f56b3edbc2b97b82b777bada83a2097acb80 (diff)
downloadcheatdb-09150a4dbb74e9fb0d9fe4bdc5ced3ac246cd0e9.tar.xz
Allow users to discard their own topics
Diffstat (limited to 'app/templates/users')
-rw-r--r--app/templates/users/user_profile_page.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html
index 8949189..3dcb369 100644
--- a/app/templates/users/user_profile_page.html
+++ b/app/templates/users/user_profile_page.html
@@ -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 %}