File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 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
267267 return $ this ->problem ;
268268 }
269269
270+ public function getContestProblem (): ?ContestProblem
271+ {
272+ if (!$ this ->problem ) {
273+ return null ;
274+ }
275+ return $ this ->contest ->getContestProblem ($ this ->problem );
276+ }
277+
270278 /**
271279 * @Serializer\VirtualProperty()
272280 * @Serializer\SerializedName("problem_id")
Original file line number Diff line number Diff line change 7171
7272 <td ><a href =" {{ link }}" >
7373 {%- if clarification .problem -%}
74- problem {{ clarification .problem . contestProblems . first | problemBadge -}}
74+ problem {{ clarification .contestProblem | problemBadge -}}
7575 {%- elseif clarification .category -%}
7676 {{- categories [clarification .category ]| default (' general' ) -}}
7777 {%- else -%}
Original file line number Diff line number Diff line change 44 <div class =" col-sm" >
55 Subject:
66 {% if clarification .problem %}
7- Problem {{ clarification .problem . contestProblems . first .shortname }}: {{ clarification .problem .name }}
7+ Problem {{ clarification .contestProblem .shortname }}: {{ clarification .problem .name }}
88 {% elseif clarification .category %}
99 {{ categories [clarification .category ]| default (' general' ) }}
1010 {% else %}
Original file line number Diff line number Diff line change 4444 <td >
4545 <a data-ajax-modal data-ajax-modal-after =" markSeen" href =" {{ link }}" >
4646 {%- if clarification .problem -%}
47- problem {{ clarification .problem . contestProblems . first | problemBadge -}}
47+ problem {{ clarification .contestProblem | problemBadge -}}
4848 {%- elseif clarification .category -%}
4949 {{- categories [clarification .category ]| default (' general' ) -}}
5050 {%- else -%}
You can’t perform that action at this time.
0 commit comments