mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
将monaco-editor作为在线IDE编辑器
This commit is contained in:
1 parent
4c53fc8146
commit
53a6dbeb1a
9 files changed
+81
-134
No files matched your search
@@ -100,16 +100,12 @@
|
||||
{% if pdoc['psdoc']['status'] %}
|
||||
<span class="icon record-status--icon {{ builtin.STATUS_CODES[pdoc['psdoc']['status']] }}"></span>
|
||||
<a href="/r/{{ pdoc['psdoc']['rid'] }}" class="record-status--text {{ builtin.STATUS_CODES[pdoc['psdoc']['status']] }}">
|
||||
{{ status.STATUS_TEXTS[pdoc['psdoc']['status']] }}
|
||||
{{ builtin.STATUS_TEXTS[pdoc['psdoc']['status']] }}
|
||||
</a>
|
||||
{% else %}
|
||||
{{ _('(None)') }}
|
||||
{% endif %}
|
||||
</dd>
|
||||
{% if pdoc['ac_msg'] and pdoc['psdoc']['status'] == status.STATUS_ACCEPTED %}
|
||||
<dt>{{ _('AC Message') }}</dt>
|
||||
<dd>{{ pdoc['ac_msg'] }}</dd>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<dt>{{ _('Difficulty') }}</dt>
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
<script>
|
||||
var Context = {
|
||||
'problemId': "{{ pdoc.pid }}",
|
||||
'postSubmitUrl': "/p/{{ pdoc.pid }}",
|
||||
'getSubmissionsUrl': "/p/{{ pdoc.pid }}",
|
||||
'getRecordDetailUrl': "/r/{{ rid }}",
|
||||
'postSubmitUrl': "/p/{{ pdoc.pid }}/submit",
|
||||
'getSubmissionsUrl': "/p/{{ pdoc.pid }}/submit",
|
||||
'getRecordDetailUrl': "/r/{rid}",
|
||||
'code_lang': "{{ handler.user.codeLang }}",
|
||||
'code_template': "{{ handler.user.codeTemplate }}",
|
||||
};
|
||||
@@ -43,8 +43,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="medium-3 columns">
|
||||
{% set owner_udoc=udoc %}
|
||||
{% set owner_dudoc=dudoc %}
|
||||
{% set owner_udoc = udoc %}
|
||||
{% set owner_dudoc = dudoc %}
|
||||
{% include "partials/problem_sidebar.html" %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user