From 93ae58e8b01ab54031d1d98bdb5cdb6b475d7e37 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 1 May 2018 17:29:28 +0200
Subject: [PATCH] Debug reformulation 2.

---
 .../templates/submissions/pool/editorial_page.html       | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/submissions/templates/submissions/pool/editorial_page.html b/submissions/templates/submissions/pool/editorial_page.html
index 97d46eff0..aa4f0bd57 100644
--- a/submissions/templates/submissions/pool/editorial_page.html
+++ b/submissions/templates/submissions/pool/editorial_page.html
@@ -209,15 +209,18 @@
                         {% endif %}
                         {% if submission.eic_recommendation_required %}
                             <li>
-                                <a href="{% url 'submissions:eic_recommendation' arxiv_identifier_w_vn_nr=submission.arxiv_identifier_w_vn_nr %}">Formulate an Editorial Recommendation</a>
+                                {% if submission.eicrecommendations.last %}
+                                    <a href="{% url 'submissions:reformulate_eic_recommendation' submission.arxiv_identifier_w_vn_nr %}">Reformulate Editorial Recommendation</a>
+                                {% else %}
+                                    <a href="{% url 'submissions:eic_recommendation' arxiv_identifier_w_vn_nr=submission.arxiv_identifier_w_vn_nr %}">Formulate an Editorial Recommendation</a>
+                                {% endif %}
                                 <p>
                                     If you recommend revisions, this will be communicated directly to the Authors, who will be asked to resubmit.
                                     <br>
                                     If you recommend acceptance or rejection, this will be put to the Editorial College for ratification.
                                 </p>
                             </li>
-                        {% endif %}
-                        {% if submission.eicrecommendations.last %}
+                        {% elif submission.eicrecommendations.last %}
                             {% if submission.eicrecommendations.last.may_be_reformulated %}
                                 <li><a href="{% url 'submissions:reformulate_eic_recommendation' submission.arxiv_identifier_w_vn_nr %}">Reformulate Editorial Recommendation</a></li>
                             {% endif %}
-- 
GitLab