diff --git a/packages/ui-default/templates/components/problem.html b/packages/ui-default/templates/components/problem.html index d682988f..864e134f 100644 --- a/packages/ui-default/templates/components/problem.html +++ b/packages/ui-default/templates/components/problem.html @@ -6,11 +6,11 @@ {%- endif -%} {%- if pdoc.domainId !== handler.args.domainId -%}{{ pdoc.domainId }}#{%- endif -%} -{% if page_name == 'contest_problemlist' and tdoc %} +{%- if page_name == 'contest_problemlist' and tdoc -%} {{ String.fromCharCode(65 + tdoc.pids.indexOf(pdoc.docId)) if tdoc.pids.includes(pdoc.docId) else '#' }} -{% else %} +{%- else -%} {{ pdoc.pid or ('P'+pdoc.docId if pdoc.domainId === handler.args.domainId else pdoc.docId) }} -{% endif %} +{%- endif -%} {%- if not small -%}  {{ pdoc.title }}{%- endif -%} {%- if not invalid -%}