diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-06-11 22:49:25 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-06-11 22:52:37 +0100 |
| commit | b1c349cc3558b4642a700a489482ff95b038ce56 (patch) | |
| tree | 1b8cda09e538d9c571050d26ecbb1d5455dea5c0 /app/templates/packages | |
| parent | 40aac38d43c2d7c2220b10a1bef34ac85f960359 (diff) | |
| download | cheatdb-b1c349cc3558b4642a700a489482ff95b038ce56.tar.xz | |
Add comment system
Diffstat (limited to 'app/templates/packages')
| -rw-r--r-- | app/templates/packages/view.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 56cfd62..3a83995 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -43,6 +43,19 @@ {% endif %} <div style="clear: both;"></div> </div> + + {% if package.author == current_user or package.checkPerm(current_user, "APPROVE_NEW") %} + {% if review_thread %} + {% from "macros/threads.html" import render_thread %} + {{ render_thread(review_thread, current_user) }} + {% else %} + <div class="box box_grey alert alert-info"> + Privately ask a question or give feedback + + <a class="alert_right button" href="{{ url_for('new_thread_page', pid=package.id, title='Package approval comments') }}">Open Thread</a> + </div> + {% endif %} + {% endif %} {% endif %} <h1>{{ package.title }} by {{ package.author.display_name }}</h1> |
