导出比赛代码功能

This commit is contained in:
undefined committed 2020-06-19 13:14:09 +08:00
1 parent b54c22cb84
commit 9247b71b5f
11 files changed
+123 -69

No files matched your search

+8 -8
View File
@@ -1,14 +1,14 @@
{% extends "layout/basic.html" %}
{% block content %}
<script>
var Context = {
'problemId': "{{ pdoc.pid }}",
'postSubmitUrl': "{{ url('problem_submit', pid=pdoc.pid) }}",
'getSubmissionsUrl': "{{ url('problem_submit', pid=pdoc.pid) }}",
'getRecordDetailUrl': "{{ url('record_detail', rid='{rid}') }}",
'code_lang': "{{ handler.user.codeLang }}",
'code_template': "{{ handler.user.codeTemplate }}",
};
var Context = {{ {
problemId: pdoc.pid,
postSubmitUrl: url('problem_submit', pid=pdoc.pid),
getSubmissionsUrl: url('problem_submit', pid=pdoc.pid),
getRecordDetailUrl: url('record_detail', rid='{rid}'),
codeLang: handler.user.codeLang,
codeTemplate: handler.user.codeTemplate
}|json|safe }};
</script>
<div class="row">
<div class="medium-9 columns">