Add support for post-approval threads
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user