Skip to content

Commit

Permalink
Fix some CSS/HTML errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Sep 7, 2024
1 parent 2b210b1 commit aa4a542
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion webapp/src/Twig/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,8 @@ public function printMetadata(?string $metadata): string
. Utils::printsize((int)($metadata['memory-bytes'])) . ', '
. '<i class="far fa-question-circle" title="exit-status"></i> '
. 'exit-code: ' . $metadata['exitcode']
. (($metadata['signal'] ?? -1) > 0 ? ' signal: ' . $metadata['signal'] : '');
. (($metadata['signal'] ?? -1) > 0 ? ' signal: ' . $metadata['signal'] : '')
. '</span>';
}

public function printWarningContent(ExternalSourceWarning $warning): string
Expand Down
12 changes: 6 additions & 6 deletions webapp/templates/jury/submission.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
{% endif %}
</h1>
{% if not submission.importError %}
<span style="float: right;">
<div style="float: right;">
{% if is_granted('ROLE_ADMIN') %}
{% if submission.valid %}
{% set action = 'ignore' %}
Expand All @@ -122,7 +122,7 @@
{% endif %}

{% include 'jury/partials/rejudge_form.html.twig' with {table: 'submission', id: submission.submitid} %}
</span>
</div>
{% endif %}

{# Condensed submission info on a single line with icons #}
Expand Down Expand Up @@ -416,7 +416,7 @@
</span>
</h3>

<span style="float: right;">
<div style="float: right;">
{% if selectedJudging.debugPackages | length > 0 %}
{% for debug_package in selectedJudging.debugPackages %}
<a href="{{ path('download_full_debug', {'debug_package_id': debug_package.debugPackageId }) }}">
Expand Down Expand Up @@ -462,7 +462,7 @@
</a>
{%- endif %}
{%- endif %}
</span>
</div>
</div>
{% endif %}

Expand Down Expand Up @@ -675,7 +675,7 @@
| <code>.../{{ runsOutput[runIdx].testcasedir | split('/') | last }}</code>{#-
-#}<button type="button" class="btn btn-link" onclick="navigator.clipboard.writeText('{{ runsOutput[runIdx].testcasedir }}')"><i class="fa-regular fa-copy"></i></button>
{% endif %}
<span style="float: right;">
<div style="float: right;">
<a href="{{ path('jury_problem_testcase_fetch', {'probId': submission.problem.probid, 'rank': run.rank, 'type': 'input'}) }}">
<button class="btn btn-sm btn-outline-secondary" >
<i class="fas fa-download"></i>
Expand Down Expand Up @@ -707,7 +707,7 @@
</a>
{% endif %}
{% endif %}
</span>
</div>
</div>
<div class="card-body">
{% if run.firstJudgingRun is not null %}
Expand Down

0 comments on commit aa4a542

Please sign in to comment.