mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui&core: pjax load problem content
This commit is contained in:
1 parent
29fbb08b4b
commit
985fcd18f5
7 files changed
+45
-23
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<div class="section__body typo" data-fragment-id="problem-description">
|
||||
{% if not pdoc.data.length and not pdoc.reference %}
|
||||
<blockquote class="warn">
|
||||
<p>{{ _('No testdata at current.') }}</p>
|
||||
</blockquote>
|
||||
{% endif %}
|
||||
{% if typeof(pdoc.config) == 'string' %}
|
||||
<blockquote class="warn">
|
||||
<p>{{ pdoc.config }}</p>
|
||||
</blockquote>
|
||||
{% endif %}
|
||||
{% if tdoc and tdoc.docType == model.document.TYPE_CONTEST and model.contest.isDone(tdoc) %}
|
||||
<blockquote class="note">
|
||||
<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 }}
|
||||
</div>
|
||||
Reference in new issue
Block a user