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 @@ -236,6 +236,14 @@ public function getProblem(): ?Problem
236236 return $ this ->problem ;
237237 }
238238
239+ public function getContestProblem (): ?ContestProblem
240+ {
241+ if (!$ this ->problem ) {
242+ return null ;
243+ }
244+ return $ this ->contest ->getContestProblem ($ this ->problem );
245+ }
246+
239247 #[OA \Property(nullable: true )]
240248 #[Serializer \VirtualProperty]
241249 #[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