diff --git a/submissions/templates/submissions/pool/pool.html b/submissions/templates/submissions/pool/pool.html index 1607a04b15df42d6a004b7d1b9cc40f7413ee628..11d29a7e5851c483a18982cedeaf7d32cdb865e6 100644 --- a/submissions/templates/submissions/pool/pool.html +++ b/submissions/templates/submissions/pool/pool.html @@ -53,7 +53,14 @@ {% endfor %} </ul> {% endif %} + {% if latest_submission_events %} + <a href="javascript:void(0)" class="btn" data-toggle="toggle" data-target="#lastest_events_list"><i class="fa fa-comments-o"></i> View/hide latest events ({{ latest_submission_events|length }}) in the last 24 hours</a> + <div id="lastest_events_list" style="display: none;"> + {% include 'submissions/submission_event_list_general.html' with events=latest_submission_events %} + </div> + {% endif %} </div> + <br> {% endif %} {% endif %} diff --git a/submissions/views.py b/submissions/views.py index a8d12ce41147f6943d1532d5f21429b55c5bcb8c..24564a1a2ace125c92c93abc6596a82ddb05e2e0 100644 --- a/submissions/views.py +++ b/submissions/views.py @@ -387,7 +387,7 @@ def pool(request, arxiv_identifier_w_vn_nr=None): # EdColAdmin related variables if request.user.has_perm('scipost.can_oversee_refereeing'): - context['latest_events'] = SubmissionEvent.objects.for_eic().last_hours() + context['latest_submission_events'] = SubmissionEvent.objects.for_eic().last_hours() # Temporary test logic: only testers see the new Pool if context['submission'] and request.is_ajax():