Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8f28862

Browse files
moesohacubercsl
authored andcommitted
Rename problemBadgeForProblemAndContest to problemBadgeForContest
(cherry picked from commit eaf95fe)
1 parent fb59a08 commit 8f28862

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎webapp/src/Twig/TwigExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function getFilters(): array
125125
new TwigFilter('tsvField', [$this, 'toTsvField']),
126126
new TwigFilter('fileTypeIcon', [$this, 'fileTypeIcon']),
127127
new TwigFilter('problemBadge', [$this, 'problemBadge'], ['is_safe' => ['html']]),
128-
new TwigFilter('problemBadgeForProblemAndContest', [$this, 'problemBadgeForProblemAndContest'], ['is_safe' => ['html']]),
128+
new TwigFilter('problemBadgeForProblemAndContest', [$this, 'problemBadgeForContest'], ['is_safe' => ['html']]),
129129
new TwigFilter('printMetadata', [$this, 'printMetadata'], ['is_safe' => ['html']]),
130130
new TwigFilter('printWarningContent', [$this, 'printWarningContent'], ['is_safe' => ['html']]),
131131
new TwigFilter('entityIdBadge', [$this, 'entityIdBadge'], ['is_safe' => ['html']]),
@@ -1108,7 +1108,7 @@ public function problemBadge(ContestProblem $problem): string
11081108
);
11091109
}
11101110

1111-
public function problemBadgeForProblemAndContest(Problem $problem, ?Contest $contest = null): string
1111+
public function problemBadgeForContest(Problem $problem, ?Contest $contest = null): string
11121112
{
11131113
$contest ??= $this->dj->getCurrentContest();
11141114
$contestProblem = $contest?->getContestProblem($problem);

‎webapp/templates/jury/executable.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
{% if executable.type == 'compare' %}
4949
{% for problem in executable.problemsCompare %}
5050
<a href="{{ path('jury_problem', {'probId': problem.probid}) }}">
51-
p{{ problem.probid }} {{ problem | problemBadgeForProblemAndContest(current_contest) }}
51+
p{{ problem.probid }} {{ problem | problemBadgeForContest }}
5252
</a>
5353
{% set used = true %}
5454
{% endfor %}
5555
{% elseif executable.type == 'run' %}
5656
{% for problem in executable.problemsRun %}
5757
<a href="{{ path('jury_problem', {'probId': problem.probid}) }}">
58-
p{{ problem.probid }} {{ problem | problemBadgeForProblemAndContest(current_contest) }}
58+
p{{ problem.probid }} {{ problem | problemBadgeForContest }}
5959
</a>
6060
{% set used = true %}
6161
{% endfor %}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /