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 @@ -267,6 +267,14 @@ public function getProblem(): ?Problem
267
267
return $ this ->problem ;
268
268
}
269
269
270
+ public function getContestProblem (): ?ContestProblem
271
+ {
272
+ if (!$ this ->problem ) {
273
+ return null ;
274
+ }
275
+ return $ this ->contest ->getContestProblem ($ this ->problem );
276
+ }
277
+
270
278
/**
271
279
* @Serializer\VirtualProperty()
272
280
* @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