From 909a2b4ce9ffd325fff06cc26d996c19ca117aa6 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 28 Jul 2018 15:19:30 +0100 Subject: Add support for post-approval threads --- app/templates/packages/view.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/templates/packages/view.html') 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") %}
  • Create Release
  • {% endif %} + {% if package.approved and package.checkPerm(current_user, "CREATE_THREAD") %} +
  • Open Thread
  • + {% endif %} {% if package.checkPerm(current_user, "DELETE_PACKAGE") %}
  • Delete
  • {% endif %} @@ -319,6 +322,10 @@ {% if threads %}

    Threads

    + {% if package.approved and package.checkPerm(current_user, "CREATE_THREAD") %} +

    Open Thread

    + {% endif %} + {% from "macros/threads.html" import render_threadlist %} {{ render_threadlist(threads) }} {% endif %} -- cgit v1.2.3