diff --git a/templates/email/fellows/email_fellow_tasklist.html b/templates/email/fellows/email_fellow_tasklist.html index adb315f44f39f6a1142e3077195e38aae1e82031..f21cca775778cc0e7a3dc87b99a7140a8c752cd8 100644 --- a/templates/email/fellows/email_fellow_tasklist.html +++ b/templates/email/fellows/email_fellow_tasklist.html @@ -45,12 +45,14 @@ {% if assignment.submission.cycle.has_required_actions %} <h3>Required actions (go to the <a href="https://scipost.org{% url 'submissions:editorial_page' assignment.submission.preprint.identifier_w_vn_nr %}">Editorial page</a> to carry them out):</h3> <ul> - {% for action in assignment.submission.cycle.get_required_actions %} - <li>{{action.1}}</li> + {% for code, action in assignment.submission.cycle.required_actions.items %} + <li>{{ action }}</li> {% empty %} <li>No action required. Great job!</li> {% endfor %} </ul> + {% else %} + <p>No action required. Great job!</p> {% endif %} </li> {% endfor %}