core&ui: fix bugs (#672)

Co-authored-by: panda <panda_dtdyy@outlook.com>
This commit is contained in:
Milmonandpanda authored and GitHub committed 2023-11-10 01:44:19 +08:00
1 parent afbf3b6174
commit f305cbfc60
6 files changed
+15 -7

No files matched your search

@@ -13,6 +13,9 @@
{% include "partials/problem_sidebar.html" %}
{% elif vnode.type == model.document.TYPE_CONTEST %}
{% set tdoc = vnode %}
{%- if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) -%}
{% set tsdoc = { attend: tdoc.attend } %}
{%- endif -%}
{% set owner_udoc = udict[vnode.owner] %}
{% include "partials/contest_sidebar.html" %}
{% else %}