Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/apps/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ def get_context_data(self, *args, **kwargs):

context = super().get_context_data(*args, **kwargs)
context['submissions'] = qs[:250]

for submission in context['submissions']:
# Get queue from each submission's competition
queue_name = "*" if submission.phase.competition.queue is None else submission.phase.competition.queue.name
submission.competition_queue = queue_name

return context


Expand Down
2 changes: 2 additions & 0 deletions src/templates/pages/server_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ <h1>Recent submissions (up to 250 or 2 days old)</h1>
<th>Competition</th>
<th>Submission PK</th>
<th>Submitter</th>
<th>Queue</th>
<th>Hostname</th>
<th>Submitted at</th>
<th>Status</th>
Expand All @@ -27,6 +28,7 @@ <h1>Recent submissions (up to 250 or 2 days old)</h1>
<td><a class="link-no-deco" target="_blank" href="./competitions/{{ submission.phase.competition.id }}">{{ submission.phase.competition.title }}</a></td>
<td>{{ submission.pk }}</td>
<td><a target="_blank" href="/profiles/user/{{ submission.owner.username }}">{{ submission.owner.username }}</a></td>
<td>{{ submission.competition_queue }}</td>
<td>{{ submission.worker_hostname }}</td>
<td>{{ submission.created_when|timesince }} ago</td>
<td>{{ submission.status }}</td>
Expand Down