From 8ea8f0079c988d97732f827ffcdf106476359ba7 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Fri, 2 Aug 2024 12:06:46 +0200 Subject: [PATCH] show comments in editorial page without cycle fixes #310 --- .../submissions/pool/editorial_page.html | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/scipost_django/submissions/templates/submissions/pool/editorial_page.html b/scipost_django/submissions/templates/submissions/pool/editorial_page.html index 543a66458..cf32b08a1 100644 --- a/scipost_django/submissions/templates/submissions/pool/editorial_page.html +++ b/scipost_django/submissions/templates/submissions/pool/editorial_page.html @@ -473,21 +473,22 @@ {% include 'submissions/pool/_submission_reports_summary_table.html' with submission=submission %} - - <h3 class="mt-4 mb-2" id="comments-summary">Comments</h3> - - {% if submission.comments_set_complete.awaiting_vetting %} - <p>{{ submission.comments_set_complete.awaiting_vetting|pluralize:'A new Comment has,New Comments have' }} been delivered. Please vet {{ submission.comments_set_complete.awaiting_vetting|pluralize:'it,them' }} below.</p> - {% elif submission.comments_set_complete %} - <p>No action required. All Comments are processed.</p> - {% else %} - <p>There are no Comments yet. When a Comment is submitted, you can take further action from here.</p> - {% endif %} - {% include 'submissions/pool/_submission_comments_summary_table.html' with submission=submission %} {% endif %} {% endif %} {% if full_access %} + + <h3 class="mt-4 mb-2" id="comments-summary">Comments</h3> + + {% if submission.comments_set_complete.awaiting_vetting %} + <p>{{ submission.comments_set_complete.awaiting_vetting|pluralize:'A new Comment has,New Comments have' }} been delivered. Please vet {{ submission.comments_set_complete.awaiting_vetting|pluralize:'it,them' }} below.</p> + {% elif submission.comments_set_complete %} + <p>No action required. All Comments are processed.</p> + {% else %} + <p>There are no Comments yet. When a Comment is submitted, you can take further action from here.</p> + {% endif %} + {% include 'submissions/pool/_submission_comments_summary_table.html' with submission=submission %} + <hr class="lg my-5"> <h2 id="communications">Communications</h2> -- GitLab