aboutsummaryrefslogtreecommitdiff
path: root/app/templates/packages/view.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/packages/view.html')
-rw-r--r--app/templates/packages/view.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html
index 4bcc1cd..01cc474 100644
--- a/app/templates/packages/view.html
+++ b/app/templates/packages/view.html
@@ -171,6 +171,9 @@
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
<li><a href="{{ package.getCreateReleaseURL() }}">Create Release</a></li>
{% endif %}
+ {% if package.approved and package.checkPerm(current_user, "CREATE_THREAD") %}
+ <li><a href="{{ url_for('new_thread_page', pid=package.id) }}">Open Thread</a></li>
+ {% endif %}
{% if package.checkPerm(current_user, "DELETE_PACKAGE") %}
<li><a href="{{ package.getDeleteURL() }}">Delete</a></li>
{% endif %}
@@ -319,6 +322,10 @@
{% if threads %}
<h3>Threads</h3>
+ {% if package.approved and package.checkPerm(current_user, "CREATE_THREAD") %}
+ <p><a href="{{ url_for('new_thread_page', pid=package.id) }}">Open Thread</a></p>
+ {% endif %}
+
{% from "macros/threads.html" import render_threadlist %}
{{ render_threadlist(threads) }}
{% endif %}