From df8d05f09d3dd7dacdb401661ea60706d2f21779 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 28 Jul 2018 15:08:08 +0100 Subject: Add thread list to package view --- app/templates/packages/view.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'app/templates') 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 %} -

🔒 {{ review_thread.title }}

-

- This thread is only visible to the package owner and users of - Editor rank or above. -

+

{% if review_thread.private %}🔒{% endif %} {{ review_thread.title }}

+ {% if review_thread.private %} +

+ This thread is only visible to the package owner and users of + Editor rank or above. +

+ {% endif %} {% from "macros/threads.html" import render_thread %} {{ render_thread(review_thread, current_user) }} @@ -313,4 +315,11 @@ {% endfor %} {% endif %} + + {% if threads %} +

Threads

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