diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html index a419e9d5..710e7faa 100644 --- a/app/templates/macros/threads.html +++ b/app/templates/macros/threads.html @@ -121,7 +121,19 @@

{% endif %} -{% if current_user.is_authenticated %} +{% if form == False %} +
+
+
+ + + {{ _("Reply") }} + +
+
+{% endif %} + +{% if current_user.is_authenticated and form != False %}
{% elif form %} {% from "macros/forms.html" import render_field, render_submit_field %} -
+ {{ form.hidden_tag() }} {{ render_field(form.comment, fieldclass="form-control markdown", label="") }} {{ render_submit_field(form.submit) }} diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 0a199b37..a1d7aa11 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -84,6 +84,27 @@ {% set package_warning=_("Non-free media") %} {% endif %}
+ {% if not package.approved %} +
+
+ {% from "macros/package_approval.html" import render_banners %} + {{ render_banners(package, current_user, topic_error, topic_error_lvl, conflicting_modnames) }} + + {% if review_thread and review_thread.checkPerm(current_user, "SEE_THREAD") %} +

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

+ {% if review_thread.private %} +

+ {{ _("This thread is only visible to its creator, package maintainers, users of Approver rank or above, and @mentioned users.") }} +

+ {% endif %} + + {% from "macros/threads.html" import render_thread %} + {{ render_thread(review_thread, current_user, form=False) }} + {% endif %} +
+
+ {% endif %} + {% set cover_image = package.getCoverImageURL() %}
-
- {% from "macros/package_approval.html" import render_banners %} - {{ render_banners(package, current_user, topic_error, topic_error_lvl, conflicting_modnames) }} - - {% if review_thread and review_thread.checkPerm(current_user, "SEE_THREAD") %} -

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

- {% if review_thread.private %} -

- {{ _("This thread is only visible to its creator, package maintainers, users of Approver rank or above, and @mentioned users.") }} -

- {% endif %} - - {% from "macros/threads.html" import render_thread %} - {{ render_thread(review_thread, current_user) }} - {% endif %} -
- - {% endif %} -
{{ self.download_btn() }}