From 50681a4d8bd751fdd0d1202902c763ca47d07e1d Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Wed, 1 Nov 2023 09:35:40 +0100 Subject: [PATCH] fix editorial page loading eicrec page with none --- .../templates/submissions/pool/editorial_page.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scipost_django/submissions/templates/submissions/pool/editorial_page.html b/scipost_django/submissions/templates/submissions/pool/editorial_page.html index b6e4d9b9c..248f463f1 100644 --- a/scipost_django/submissions/templates/submissions/pool/editorial_page.html +++ b/scipost_django/submissions/templates/submissions/pool/editorial_page.html @@ -55,8 +55,8 @@ {% endif %} <br> - {% if submission.eicrecommendations %} - <h3 class="highlight" id="editorial-recommendation">Editorial Recommendation</h3> + <h3 class="highlight" id="editorial-recommendation">Editorial Recommendation</h3> + {% if submission.eicrecommendations.all %} {% include 'submissions/_previous_recommendations_card_fellow_content.html' with recommendation=submission.eicrecommendations.last %} {% include 'submissions/_recommendation_fellow_content.html' with recommendation=submission.eicrecommendations.last %} {% endif %} -- GitLab