Skip to content

Commit eaf95fe

Browse files
moesohameisterT
authored andcommitted
Rename problemBadgeForProblemAndContest to problemBadgeForContest
1 parent 56104f6 commit eaf95fe

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
@@ -109,7 +109,7 @@ public function getFilters(): array
109109
new TwigFilter('tsvField', $this->toTsvField(...)),
110110
new TwigFilter('fileTypeIcon', $this->fileTypeIcon(...)),
111111
new TwigFilter('problemBadge', $this->problemBadge(...), ['is_safe' => ['html']]),
112-
new TwigFilter('problemBadgeForProblemAndContest', $this->problemBadgeForProblemAndContest(...), ['is_safe' => ['html']]),
112+
new TwigFilter('problemBadgeForContest', $this->problemBadgeForContest(...), ['is_safe' => ['html']]),
113113
new TwigFilter('printMetadata', $this->printMetadata(...), ['is_safe' => ['html']]),
114114
new TwigFilter('printWarningContent', $this->printWarningContent(...), ['is_safe' => ['html']]),
115115
new TwigFilter('entityIdBadge', $this->entityIdBadge(...), ['is_safe' => ['html']]),
@@ -1084,7 +1084,7 @@ public function problemBadge(ContestProblem $problem): string
10841084
);
10851085
}
10861086

1087-
public function problemBadgeForProblemAndContest(Problem $problem, ?Contest $contest = null): string
1087+
public function problemBadgeForContest(Problem $problem, ?Contest $contest = null): string
10881088
{
10891089
$contest ??= $this->dj->getCurrentContest();
10901090
$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)