diff --git a/hydro/handler/base.js b/hydro/handler/base.js index 826204e60..6a932b24b 100644 --- a/hydro/handler/base.js +++ b/hydro/handler/base.js @@ -44,10 +44,7 @@ MIDDLEWARE(async (ctx, next) => { } } }; - ctx.back = () => { - console.log(122143); - ctx.redirect(ctx.request.headers.referer || '/'); - }; + ctx.back = () => ctx.redirect(ctx.request.headers.referer || '/'); ctx.csrf_token = await token.add(token.TYPE_CSRF_TOKEN, 600, ctx.path); await next(); if (ctx.session.sid) diff --git a/templates/partials/problem_sidebar_normal.html b/templates/partials/problem_sidebar_normal.html index dbf823e75..70216ef4c 100644 --- a/templates/partials/problem_sidebar_normal.html +++ b/templates/partials/problem_sidebar_normal.html @@ -100,16 +100,12 @@ {% if pdoc['psdoc']['status'] %} - {{ status.STATUS_TEXTS[pdoc['psdoc']['status']] }} + {{ builtin.STATUS_TEXTS[pdoc['psdoc']['status']] }} {% else %} {{ _('(None)') }} {% endif %} - {% if pdoc['ac_msg'] and pdoc['psdoc']['status'] == status.STATUS_ACCEPTED %} -
{{ _('AC Message') }}
-
{{ pdoc['ac_msg'] }}
- {% endif %} {% endif %} {% endif %}
{{ _('Difficulty') }}
diff --git a/templates/problem_detail.html b/templates/problem_detail.html index 0d1e9809d..f7ae2e1ee 100644 --- a/templates/problem_detail.html +++ b/templates/problem_detail.html @@ -4,9 +4,9 @@