diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-12-25 17:51:29 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-12-25 17:51:29 +0000 |
| commit | 09150a4dbb74e9fb0d9fe4bdc5ced3ac246cd0e9 (patch) | |
| tree | 6a79e990698c72053a396456f04ed8b7af0d4981 /app/templates/users | |
| parent | c726f56b3edbc2b97b82b777bada83a2097acb80 (diff) | |
| download | cheatdb-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.html | 11 |
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 %} |
