From 204dfd6efc505fe126d6f4fc61086b2d14496e5a Mon Sep 17 00:00:00 2001 From: undefined Date: Sun, 8 Jan 2023 18:46:25 +0800 Subject: [PATCH] ui: problem: fix problemId display --- packages/ui-default/templates/components/problem.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui-default/templates/components/problem.html b/packages/ui-default/templates/components/problem.html index d682988f0..864e134f6 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 -%}