File tree 4 files changed +11
-3
lines changed
4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,14 @@ public function getProblem(): ?Problem
239
239
return $ this ->problem ;
240
240
}
241
241
242
+ public function getContestProblem (): ?ContestProblem
243
+ {
244
+ if (!$ this ->problem ) {
245
+ return null ;
246
+ }
247
+ return $ this ->contest ->getContestProblem ($ this ->problem );
248
+ }
249
+
242
250
public function getProblemId (): ?int
243
251
{
244
252
return $ this ->getProblem ()?->getProbid();
Original file line number Diff line number Diff line change 71
71
72
72
<td ><a href =" {{ link }}" >
73
73
{%- if clarification .problem -%}
74
- problem {{ clarification .problem . contestProblems . first | problemBadge -}}
74
+ problem {{ clarification .contestProblem | problemBadge -}}
75
75
{%- elseif clarification .category -%}
76
76
{{- categories [clarification .category ]| default (' general' ) -}}
77
77
{%- else -%}
Original file line number Diff line number Diff line change 4
4
<div class =" col-sm" >
5
5
Subject:
6
6
{% if clarification .problem %}
7
- Problem {{ clarification .problem . contestProblems . first .shortname }}: {{ clarification .problem .name }}
7
+ Problem {{ clarification .contestProblem .shortname }}: {{ clarification .problem .name }}
8
8
{% elseif clarification .category %}
9
9
{{ categories [clarification .category ]| default (' general' ) }}
10
10
{% else %}
Original file line number Diff line number Diff line change 44
44
<td >
45
45
<a data-ajax-modal data-ajax-modal-after =" markSeen" href =" {{ link }}" >
46
46
{%- if clarification .problem -%}
47
- problem {{ clarification .problem . contestProblems . first | problemBadge -}}
47
+ problem {{ clarification .contestProblem | problemBadge -}}
48
48
{%- elseif clarification .category -%}
49
49
{{- categories [clarification .category ]| default (' general' ) -}}
50
50
{%- else -%}
You can’t perform that action at this time.
0 commit comments