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 %} -