SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit f370259f authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Improve/debug email fellow tasklist

parent 43ff4f93
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ class Command(BaseCommand): ...@@ -10,7 +10,7 @@ class Command(BaseCommand):
help = 'Sends an email to Fellows with current and upcoming tasks list' help = 'Sends an email to Fellows with current and upcoming tasks list'
def handle(self, *args, **kwargs): def handle(self, *args, **kwargs):
fellows = Contributor.objects.fellows( fellows = Contributor.objects.fellows(
).filter(user__last_name__istartswith='C' # temporary limitation, to ease testing # ).filter(user__last_name__istartswith='C' # temporary limitation, to ease testing
).order_by('user__last_name') ).order_by('user__last_name')
for fellow in fellows: for fellow in fellows:
......
...@@ -17,14 +17,21 @@ ...@@ -17,14 +17,21 @@
<ul> <ul>
{% for assignment in assignments_ongoing %} {% for assignment in assignments_ongoing %}
<li> <li>
<div class="pool-item"> <p>
<p class="mb-1"> <a href="https://scipost.org{% url 'submissions:pool' assignment.submission.arxiv_identifier_w_vn_nr %}">{{ assignment.submission.title }}</a><br>
<a href="https://scipost.org{% url 'submissions:pool' assignment.submission.arxiv_identifier_w_vn_nr %}">{{ assignment.submission.title }}</a><br> <em>by {{ assignment.submission.author_list }}</em>
<em>by {{ assignment.submission.author_list }}</em> </p>
</p> <p><a href="https://scipost.org{% url 'submissions:editorial_page' assignment.submission.arxiv_identifier_w_vn_nr %}">Go to this Submission's Editorial page</a></p>
<p><a href="https://scipost.org{% url 'submissions:editorial_page' assignment.submission.arxiv_identifier_w_vn_nr %}">Go to this Submission's Editorial page</a></p> {% if assignment.submission.cycle.has_required_actions %}
{% include 'submissions/_required_actions_block.html' with submission=assignment.submission %} <h3>Required actions:</h3>
</div> <ul>
{% for action in assignment.submission.cycle.get_required_actions %}
<li>{{action.1}}</li>
{% empty %}
<li>No actions required</li>
{% endfor %}
</ul>
{% endif %}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
...@@ -34,14 +41,12 @@ ...@@ -34,14 +41,12 @@
<ul> <ul>
{% for assignment in assignments_upcoming_deadline %} {% for assignment in assignments_upcoming_deadline %}
<li> <li>
<div class="pool-item"> <p>
<p class="mb-1"> <a href="https://scipost.org{% url 'submissions:pool' assignment.submission.arxiv_identifier_w_vn_nr %}">{{ assignment.submission.title }}</a><br>
<a href="https://scipost.org{% url 'submissions:pool' assignment.submission.arxiv_identifier_w_vn_nr %}">{{ assignment.submission.title }}</a><br> <em>by {{ assignment.submission.author_list }}</em>
<em>by {{ assignment.submission.author_list }}</em> </p>
</p> <p>Refereeing deadline: {{ assignment.submission.reporting_deadline|date:"Y-m-d" }}.</p>
<p>Refereeing deadline: {{ assignment.submission.reporting_deadline|date:"Y-m-d" }}.</p> <p><a href="https://scipost.org{% url 'submissions:editorial_page' assignment.submission.arxiv_identifier_w_vn_nr %}">Go to this Submission's Editorial page</a></p>
<p><a href="https://scipost.org{% url 'submissions:editorial_page' assignment.submission.arxiv_identifier_w_vn_nr %}">Go to this Submission's Editorial page</a></p>
</div>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment