dev标签未闭合,修复,整理格式

This commit is contained in:
sxw@401
2015-09-17 11:28:27 +08:00
parent 2b4ec33945
commit 3c1d256cc2

View File

@@ -37,37 +37,30 @@
{% for item in samples %} {% for item in samples %}
<div class="problem-section"> <div class="problem-section">
<label class="problem-label">样例输入{{ forloop.counter }}</label> <label class="problem-label">样例输入{{ forloop.counter }}</label>
<a href="javascript:void(0)" class="copy-sample" data-clipboard-text="{{ item.input }}">复制</a> <a href="javascript:void(0)" class="copy-sample"
<pre> data-clipboard-text="{{ item.input }}">复制</a>
{{ item.input }}</pre> <pre>{{ item.input }}</pre>
</div> </div>
<div class="problem-section"> <div class="problem-section">
<label class="problem-label">样例输出{{ forloop.counter }}</label> <label class="problem-label">样例输出{{ forloop.counter }}</label>
<pre> <pre>{{ item.output }}</pre>
{{ item.output }}</pre>
</div> </div>
{% endfor %} {% endfor %}
{% if problem.hint %} {% if problem.hint %}
<div class="problem-section hide"> <div class="problem-section hide">
<label class="problem-label">提示</label> <label class="problem-label">提示</label>
<p class="problem-detail">{{ contest_problem.hint|safe }}</p> <p class="problem-detail">{{ contest_problem.hint|safe }}</p>
</div> </div>
{% endif %} {% endif %}
{% if contest_problem.hint %} {% if contest_problem.hint %}
<div class="problem-section hide"> <div class="problem-section hide">
<label class="problem-label">提示</label> <label class="problem-label">提示</label>
<div class="problem-detail">{{ contest_problem.hint|safe }}</div> <div class="problem-detail">{{ contest_problem.hint|safe }}</div>
</div> </div>
{% endif %} {% endif %}
{% ifequal contest.status 0 %} {% ifequal contest.status 0 %}
<div> <div>
<label>选择语言</label> <label>选择语言</label>
<div> <div>
<label class="radio-inline"> <label class="radio-inline">
<input type="radio" name="language" value="1" checked> C (GCC 4.8) <input type="radio" name="language" value="1" checked> C (GCC 4.8)
@@ -80,31 +73,28 @@
</label> </label>
</div> </div>
</div> </div>
<div id="code-field"> <div id="code-field">
<label class="problem-label">提交代码</label> <label class="problem-label">提交代码</label>
<textarea id="code-editor"></textarea> <textarea id="code-editor"></textarea>
</div> </div>
<hr> <hr>
<div id="submit-code"> <div id="submit-code">
<button type="button" class="btn btn-primary" id="submit-code-button"> <button type="button" class="btn btn-primary" id="submit-code-button">
提交代码 提交代码
</button> </button>
<img src="/static/img/loading.gif" id="loading-gif"> <img src="/static/img/loading.gif" id="loading-gif">
</div> </div>
{% endifequal %} {% endifequal %}
{% if show_warning %} {% if show_warning %}
<div class="alert alert-success" role="alert">{{ warning }}</div> <div class="alert alert-success" role="alert">{{ warning }}</div>
{% endif %} {% endif %}
<div id="result"> <div id="result">
</div> </div>
<hr> <hr>
</div> </div>
</div> </div>
</div>
</div>
{% endblock %} {% endblock %}
{% block js_block %} {% block js_block %}
<script src="/static/js/app/oj/problem/problem.js"></script> <script src="/static/js/app/oj/problem/problem.js"></script>