|
414 | 414 | <div class="mb-2">
|
415 | 415 | <div>
|
416 | 416 | {% if not submission.importError %}
|
417 |
| - Result: |
418 | 417 | {% if selectedJudging is null or selectedJudging.result is empty %}
|
419 | 418 | {%- if selectedJudging and selectedJudging.started %}
|
420 | 419 | {{- '' | printValidJuryResult -}}
|
|
431 | 430 | {%- if lastJudging is not null -%}
|
432 | 431 | {% set lastSubmissionLink = path('jury_submission', {submitId: lastSubmission.submitid}) %}{#-
|
433 | 432 | -#}<span class="lastresult">
|
434 |
| - (<a href="{{ lastSubmissionLink }}">s{{ lastSubmission.submitid }}</a>: {{ lastJudging.result }}){#- |
| 433 | + (<a href="{{ lastSubmissionLink }}">s{{ lastSubmission.submitid }}</a>: {{ lastJudging.result | printResult }}){#- |
435 | 434 | -#}</span>
|
436 | 435 | {%- endif -%}
|
437 | 436 | {%- if externalJudgement is not null %}
|
|
472 | 471 | <table>
|
473 | 472 | {% if not submission.importError %}
|
474 | 473 | <tr>
|
475 |
| - <td>testcase runs:</td> |
476 | 474 | <td>
|
477 | 475 | {% if selectedJudging is null %}
|
478 | 476 | {% set judgingDone = false %}
|
479 | 477 | {% else %}
|
480 | 478 | {% set judgingDone = selectedJudging.endtime is not empty %}
|
481 | 479 | {% endif %}
|
482 | 480 | {{ runs | displayTestcaseResults(judgingDone) }}
|
| 481 | + </td> |
| 482 | + <td> |
483 | 483 | {% if selectedJudging is not null and runsOutstanding %}
|
484 | 484 | {% if selectedJudging.judgeCompletely %}
|
485 | 485 | <i class="fas fa-balance-scale" title="remaining test cases requested to be judged"></i>
|
|
493 | 493 | </td>
|
494 | 494 | </tr>
|
495 | 495 | {% endif %}
|
496 |
| - {% if lastJudging is not null %} |
497 |
| - <tr class="lasttcruns"> |
| 496 | + {% if externalJudgement is not null %} |
| 497 | + <tr> |
498 | 498 | <td>
|
499 |
| - <a href="{{ lastSubmissionLink }}">s{{ lastSubmission.submitid }}</a> runs: |
| 499 | + {{ externalRuns | displayTestcaseResults(externalJudgement.endtime is not empty, true) }} |
500 | 500 | </td>
|
501 | 501 | <td>
|
502 |
| - {{ lastRuns | displayTestcaseResults(lastJudging.endtime is not empty) }} |
| 502 | + {% if externalSubmissionUrl and externalSubmissionUrl is not empty %} |
| 503 | + <a href="{{ externalSubmissionUrl }}"> |
| 504 | + {% endif %} |
| 505 | + external {{ externalJudgement.extjudgementid }} |
| 506 | + {% if externalSubmissionUrl and externalSubmissionUrl is not empty %} |
| 507 | + </a> |
| 508 | + {% endif %} |
503 | 509 | </td>
|
504 | 510 | </tr>
|
505 | 511 | {% endif %}
|
506 |
| - {% if externalJudgement is not null %} |
507 |
| - <tr> |
508 |
| - <td>external runs:</td> |
| 512 | + {% if lastJudging is not null %} |
| 513 | + <tr class="lasttcruns"> |
509 | 514 | <td>
|
510 |
| - {{ externalRuns | displayTestcaseResults(externalJudgement.endtime is not empty, true) }} |
| 515 | + {{ lastRuns | displayTestcaseResults(lastJudging.endtime is not empty) }} |
| 516 | + </td> |
| 517 | + <td> |
| 518 | + <a href="{{ lastSubmissionLink }}">previous s{{ lastSubmission.submitid }}</a> |
| 519 | + {% if lastJudging.verifyComment %} |
| 520 | + <span class="prevsubmit">(verify comment: '{{ lastJudging.verifyComment }}')</span> |
| 521 | + {% endif %} |
511 | 522 | </td>
|
512 | 523 | </tr>
|
513 | 524 | {% endif %}
|
514 | 525 | </table>
|
515 | 526 |
|
516 |
| - {# Show JS toggle of previous submission results #} |
517 |
| - {% if lastJudging is not null %} |
518 |
| - <span class="testcases_prev"> |
519 |
| - <a href="javascript:togglelastruns();">show/hide</a> |
520 |
| - results of previous <a href="{{ lastSubmissionLink }}">submission s{{ lastSubmission.submitid }}</a> |
521 |
| - {% if lastJudging.verifyComment %} |
522 |
| - <span class="prevsubmit">(verify comment: '{{ lastJudging.verifyComment }}')</span> |
523 |
| - {% endif %} |
524 |
| - </span> |
525 |
| - {% endif %} |
526 | 527 | {% endif %}
|
527 | 528 | </div>
|
528 | 529 |
|
529 |
| - <script> |
530 |
| - $(function () { |
531 |
| - togglelastruns(); |
532 |
| - }); |
533 |
| - </script> |
534 |
| - |
535 | 530 | {# Show verify info, but only when a result is known #}
|
536 | 531 | {% if selectedJudging is not null and selectedJudging.result is not empty %}
|
537 | 532 | {% include 'jury/partials/verify_form.html.twig' with {
|
|
0 commit comments