File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,9 @@ public function viewAction(
239
239
if (!$ rejudging ) {
240
240
throw new NotFoundHttpException (sprintf ('Rejudging with ID %s not found ' , $ rejudgingId ));
241
241
}
242
- $ todo = $ this ->rejudgingService ->calculateTodo ($ rejudging )['todo ' ];
242
+ $ todoAndDone = $ this ->rejudgingService ->calculateTodo ($ rejudging );
243
+ $ todo = $ todoAndDone ['todo ' ];
244
+ $ done = $ todoAndDone ['done ' ];
243
245
244
246
$ verdicts = $ this ->dj ->getVerdicts (['final ' , 'error ' ]);
245
247
$ verdicts ['' ] = 'JE ' ; /* happens for aborted judgings */
@@ -389,6 +391,7 @@ public function viewAction(
389
391
$ data = [
390
392
'rejudging ' => $ rejudging ,
391
393
'todo ' => $ todo ,
394
+ 'done ' => $ done ,
392
395
'verdicts ' => $ verdicts ,
393
396
'used ' => $ used ,
394
397
'verdictTable ' => $ verdictTable ,
Original file line number Diff line number Diff line change 78
78
</tr >
79
79
<tr {% if todo <= 0 %}class =" d-none" {% endif %}>
80
80
<th >Queued</th >
81
- <td ><span data-todo >{{ todo }}</span > unfinished judgings</td >
81
+ <td >
82
+ <span data-todo >{{ todo }}</span > unfinished judgings (out of {{ todo + done }})
83
+ <br />
84
+ {% set percent = (done / (todo + done )) * 100 | number_format %}
85
+ <div class =" progress" style =" height: 15px;" >
86
+ <div class =" progress-bar" role =" progressbar" style =" width: {{ percent }}%;" aria-valuenow =" {{ percent }}" aria-valuemin =" 0" aria-valuemax =" 100" ></div >
87
+ </div >
88
+ </td >
82
89
</tr >
83
90
{% if repetitions %}
84
91
<tr >
You can’t perform that action at this time.
0 commit comments