aboutsummaryrefslogtreecommitdiff
path: root/app/templates/packages/view.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-07-28 15:08:08 +0100
committerrubenwardy <rw@rubenwardy.com>2018-07-28 15:08:08 +0100
commitdf8d05f09d3dd7dacdb401661ea60706d2f21779 (patch)
tree0d93e82bf56ae8a18296224faada846e944a0ddf /app/templates/packages/view.html
parent8c3b1c8c9550c9fec9a82a9afa1c4670fcf42e07 (diff)
downloadcheatdb-df8d05f09d3dd7dacdb401661ea60706d2f21779.tar.xz
Add thread list to package view
Diffstat (limited to 'app/templates/packages/view.html')
-rw-r--r--app/templates/packages/view.html19
1 files changed, 14 insertions, 5 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html
index 181ae99..4bcc1cd 100644
--- a/app/templates/packages/view.html
+++ b/app/templates/packages/view.html
@@ -57,11 +57,13 @@
{% if package.author == current_user or package.checkPerm(current_user, "APPROVE_NEW") %}
{% if review_thread %}
- <h2>&#x1f512; {{ review_thread.title }}</h2>
- <p><i>
- This thread is only visible to the package owner and users of
- Editor rank or above.
- </i></p>
+ <h2>{% if review_thread.private %}&#x1f512;{% endif %} {{ review_thread.title }}</h2>
+ {% if review_thread.private %}
+ <p><i>
+ This thread is only visible to the package owner and users of
+ Editor rank or above.
+ </i></p>
+ {% endif %}
{% from "macros/threads.html" import render_thread %}
{{ render_thread(review_thread, current_user) }}
@@ -313,4 +315,11 @@
{% endfor %}
</ul>
{% endif %}
+
+ {% if threads %}
+ <h3>Threads</h3>
+
+ {% from "macros/threads.html" import render_threadlist %}
+ {{ render_threadlist(threads) }}
+ {% endif %}
{% endblock %}