-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show list of submissions on public and team scoreboards when clicking on a cell #2918
Open
nickygerritsen
wants to merge
11
commits into
DOMjudge:main
Choose a base branch
from
nickygerritsen:team-submission-list-on-scoreboards
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
44a03e8
Fix displaying too late submissions when submitting exactly at the en…
nickygerritsen ca678dd
Show list of submissions on public and team scoreboards when clicking…
nickygerritsen dc7afcf
Remove unneeded action
nickygerritsen 37c4033
Update webapp/src/Controller/PublicController.php
nickygerritsen 2c792f2
Update webapp/src/Controller/PublicController.php
nickygerritsen 14242a4
Update webapp/templates/partials/scoreboard_table.html.twig
nickygerritsen 8c5934d
Use accepted and rejected instead of full verdict
nickygerritsen a4c8b07
Update webapp/src/Controller/PublicController.php
nickygerritsen 5962b80
Update webapp/src/Twig/TwigExtension.php
nickygerritsen e28750f
Update webapp/templates/public/partials/submission_list.html.twig
nickygerritsen 35d8904
Don't use accepted
nickygerritsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
webapp/templates/public/partials/submission_list.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{# Render a list of submissions for the scoreboard #} | ||
{# @var submission \App\Entity\Submission #} | ||
|
||
{% if submissions is empty %} | ||
<div class="alert alert-warning">No submissions</div> | ||
{% else %} | ||
<table class="data-table table table-hover table-striped table-sm submissions-table"> | ||
<thead class="thead-light"> | ||
<tr> | ||
<th scope="col">time</th> | ||
<th scope="col">language</th> | ||
<th scope="col">result</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for submission in submissions %} | ||
<tr> | ||
<td> | ||
{{ submission.submittime | printtime(null, submission.contest) }} | ||
</td> | ||
<td class="langid"> | ||
{{ submission.language.langid }} | ||
</td> | ||
<td> | ||
{% if submission.submittime >= submission.contest.endtime %} | ||
{{ 'too-late' | printResult }} | ||
{% elseif submission.contest.freezetime and submission.submittime >= submission.contest.freezetime and not contest.freezeData.showFinal %} | ||
{{ '' | printResult }} | ||
{% else %} | ||
{% if submission.judgings.first is empty or submission.judgings.first.result is empty %} | ||
{{ '' | printResult }} | ||
{% elseif verificationRequired and not submission.judgings.first.verified %} | ||
{{ '' | printResult }} | ||
{% else %} | ||
{{ submission.judgings.first.result | printResult(true, false, true) }} | ||
{% endif %} | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "public/base.html.twig" %} | ||
|
||
{% block title %} | ||
{% if team is not empty %}Submissions for team {{ team.effectiveName }} on problem {{ problem.problem.name }} - {% endif %}{{ parent() }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h1 class="mt-3"> | ||
Submissions for team {{ team.effectiveName }} on problem {{ problem | problemBadge }} {{ problem.problem.name }} | ||
</h1> | ||
|
||
{% include 'public/partials/submission_list.html.twig' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends "partials/modal.html.twig" %} | ||
|
||
{% block title %} | ||
Submissions for team {{ team.effectiveName }} on problem {{ problem | problemBadge }} {{ problem.problem.name }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% include 'public/partials/submission_list.html.twig' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For long running contests we would still get a long list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For one team? We would if the team submits a lot. We can add this behind an option if this becomes a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the modal scrollable?