File tree Expand file tree Collapse file tree 7 files changed +29
-14
lines changed Expand file tree Collapse file tree 7 files changed +29
-14
lines changed Original file line number Diff line number Diff line change @@ -265,10 +265,10 @@ img.affiliation-logo {
265
265
padding-right : 3pt ;
266
266
}
267
267
268
- .score_correct { background : # 60e760 ; }
269
- .score_first { background : # 1daa1d !important ; }
270
- .score_pending { background : # 6666FF ; }
271
- .score_incorrect { background : # e87272 ; }
268
+ .score_correct { background : # 60e760 ; }
269
+ .score_correct . score_first { background : # 1daa1d ; }
270
+ .score_incorrect { background : # e87272 ; }
271
+ .score_pending { background : # 6666ff ; }
272
272
273
273
.gold-medal { background-color : # EEC710 }
274
274
.silver-medal { background-color : # AAA }
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ tr.summary td { border-top: 1px solid black; }
48
48
clickable in the jury scoreboard and for all team cells */
49
49
.scoreboard_jury td , .scoreboard_jury th { padding : 0 ; }
50
50
51
+ /* show pending submissions using a blue corner */
52
+ .score_pending .score_correct { background : linear-gradient (45deg , # 60e760 85% , # 6666ff 85% ); }
53
+ .score_pending .score_correct .score_first { background : linear-gradient (45deg , # 1daa1d 85% , # 6666ff 85% ); }
54
+ .score_pending .score_incorrect { background : linear-gradient (45deg , # e87272 85% , # 6666ff 85% ); }
55
+
51
56
# submission_layout { width : 100% ; }
52
57
53
58
# djlogo {
Original file line number Diff line number Diff line change @@ -932,7 +932,7 @@ public function getScoreboardTwigData(
932
932
$ data ['showFlags ' ] = $ this ->config ->get ('show_flags ' );
933
933
$ data ['showAffiliationLogos ' ] = $ this ->config ->get ('show_affiliation_logos ' );
934
934
$ data ['showAffiliations ' ] = $ this ->config ->get ('show_affiliations ' );
935
- $ data ['showPending ' ] = $ this ->config ->get ('show_pending ' );
935
+ $ data ['showPending ' ] = empty ( $ scoreboard ) || $ scoreboard -> getFreezeData ()-> showFrozen () ? $ this ->config ->get ('show_pending ' ) : 0 ;
936
936
$ data ['showTeamSubmissions ' ] = $ this ->config ->get ('show_teams_submissions ' );
937
937
$ data ['scoreInSeconds ' ] = $ this ->config ->get ('score_in_seconds ' );
938
938
$ data ['maxWidth ' ] = $ this ->config ->get ('team_column_width ' );
Original file line number Diff line number Diff line change @@ -154,8 +154,9 @@ protected function calculateScoreboard(): void
154
154
$ this ->matrix [$ teamId ][$ probId ] = new ScoreboardMatrixItem (
155
155
$ scoreRow ->getIsCorrect ($ this ->restricted ),
156
156
$ scoreRow ->getIsCorrect ($ this ->restricted ) && $ scoreRow ->getIsFirstToSolve (),
157
- $ scoreRow ->getSubmissions ($ this ->restricted ),
158
- $ scoreRow ->getPending ($ this ->restricted ),
157
+ // When public scoreboard is frozen, also show "x + y tries" for jury
158
+ $ scoreRow ->getSubmissions ($ this ->freezeData ->showFrozen () ? false : $ this ->restricted ),
159
+ $ scoreRow ->getPending ($ this ->freezeData ->showFrozen () ? false : $ this ->restricted ),
159
160
$ scoreRow ->getSolveTime ($ this ->restricted ),
160
161
$ penalty ,
161
162
$ scoreRow ->getRuntime ($ this ->restricted )
Original file line number Diff line number Diff line change @@ -65,8 +65,9 @@ protected function calculateScoreboard(): void
65
65
$ this ->matrix [$ scoreRow ->getTeam ()->getTeamid ()][$ scoreRow ->getProblem ()->getProbid ()] = new ScoreboardMatrixItem (
66
66
$ scoreRow ->getIsCorrect ($ this ->restricted ),
67
67
$ scoreRow ->getIsCorrect ($ this ->showRestrictedFts ) && $ scoreRow ->getIsFirstToSolve (),
68
- $ scoreRow ->getSubmissions ($ this ->restricted ),
69
- $ scoreRow ->getPending ($ this ->restricted ),
68
+ // When public scoreboard is frozen, also show "x + y tries" for jury
69
+ $ scoreRow ->getSubmissions ($ this ->freezeData ->showFrozen () ? false : $ this ->restricted ),
70
+ $ scoreRow ->getPending ($ this ->freezeData ->showFrozen () ? false : $ this ->restricted ),
70
71
$ scoreRow ->getSolveTime ($ this ->restricted ),
71
72
$ penalty ,
72
73
$ scoreRow ->getRuntime ($ this ->restricted )
Original file line number Diff line number Diff line change 93
93
</div >
94
94
{% endif %}
95
95
96
- {% if scoreboard .freezeData .showFrozen ( false ) %}
96
+ {% if scoreboard .freezeData .showFrozen %}
97
97
<div class =" alert alert-warning" role =" alert" style =" font-size: 80%;" >
98
98
{% if jury %}
99
99
<a href =" {{ path(' public_index' ) }}" >The public scoreboard</a >
100
- was frozen with {{ current_contest .minutesRemaining }} minutes remaining
100
+ was frozen with {{ current_contest .minutesRemaining }} minutes remaining.
101
+ {% if showPending %}Submissions after the freeze are indicated with a blue corner.{% endif %}
101
102
{% else %}
102
103
The scoreboard was frozen with {{ current_contest .minutesRemaining }} minutes remaining - solutions
103
104
submitted in the last {{ current_contest .minutesRemaining }} minutes of the contest {% if showPending %}are still shown as pending{% else %}are not shown{% endif %}.
109
110
(filterValues .affiliations | length > 1 or
110
111
filterValues .countries | length > 1 or
111
112
filterValues .categories | length > 1 ) %}
112
- <div class =" dropdown" >
113
+ <div class =" dropdown" >
113
114
<button class =" btn btn-outline-secondary btn-sm m-2 dropdown-toggle" data-bs-toggle =" dropdown"
114
115
aria-haspopup =" true" aria-expanded =" false" id =" filter-toggle" >
115
116
<i class =" fas fa-filter" ></i >
Original file line number Diff line number Diff line change 249
249
{% set scoreCssClass = ' score_correct' %}
250
250
{% if enable_ranking %}
251
251
{% if not scoreboard.getRuntimeAsScoreTiebreaker () and scoreboard.solvedFirst (score .team , problem ) %}
252
- {% set scoreCssClass = scoreCssClass ~ ' score_first' %}
252
+ {% set scoreCssClass = scoreCssClass ~ ' score_first' %}
253
253
{% endif %}
254
254
{% if scoreboard.getRuntimeAsScoreTiebreaker () and scoreboard.isFastestSubmission (score .team , problem ) %}
255
- {% set scoreCssClass = scoreCssClass ~ ' score_first' %}
255
+ {% set scoreCssClass = scoreCssClass ~ ' score_first' %}
256
256
{% endif %}
257
257
{% endif %}
258
258
{% elseif showPending and matrixItem .numSubmissionsPending > 0 %}
259
259
{% set scoreCssClass = ' score_pending' %}
260
260
{% elseif matrixItem .numSubmissions > 0 %}
261
261
{% set scoreCssClass = ' score_incorrect' %}
262
262
{% endif %}
263
+ {% if jury and showPending and matrixItem .numSubmissionsPending > 0 %}
264
+ {% if scoreCssClass == ' score_pending' %}
265
+ {% set scoreCssClass = scoreCssClass ~ ' score_incorrect' %}
266
+ {% else %}
267
+ {% set scoreCssClass = scoreCssClass ~ ' score_pending' %}
268
+ {% endif %}
269
+ {% endif %}
263
270
264
271
{% set numSubmissions = matrixItem .numSubmissions %}
265
272
{% if showPending and matrixItem .numSubmissionsPending > 0 %}
You can’t perform that action at this time.
0 commit comments