mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: better ogp meta on problem_detail page
This commit is contained in:
7 files changed
+39
-4
No files matched your search
@@ -19,5 +19,9 @@
|
||||
<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.request.query.lang or handler.user.viewLang or handler.session.viewLang, pdoc.html)|safe }}
|
||||
{% if not renderredContent %}
|
||||
{% set preferredLang = handler.request.query.lang or handler.user.viewLang or handler.session.viewLang %}
|
||||
{% set renderredContent = pdoc.content|content(preferredLang, pdoc.html) %}
|
||||
{% endif %}
|
||||
{{ renderredContent|safe }}
|
||||
</div>
|
||||
Reference in new issue
Block a user