ui: handle session multi-lang

This commit is contained in:
undefined committed 2021-10-12 18:34:53 +08:00
1 parent 172a03074c
commit e12bed20bd
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.25.0",
"version": "4.25.1",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -82,7 +82,7 @@
<p>{{ _('You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.') }}</p>
</blockquote>
{% endif %}
{{ pdoc.content|content(handler.user.viewLang, pdoc.html)|safe }}
{{ pdoc.content|content(handler.user.viewLang or handler.session.viewLang, pdoc.html)|safe }}
</div>
</div></div>
</div>