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 @@ -236,6 +236,14 @@ public function getProblem(): ?Problem
236
236
return $ this ->problem ;
237
237
}
238
238
239
+ public function getContestProblem (): ?ContestProblem
240
+ {
241
+ if (!$ this ->problem ) {
242
+ return null ;
243
+ }
244
+ return $ this ->contest ->getContestProblem ($ this ->problem );
245
+ }
246
+
239
247
#[OA \Property(nullable: true )]
240
248
#[Serializer \VirtualProperty]
241
249
#[Serializer \SerializedName('problem_id ' )]
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