mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-22 00:43:20 +00:00
修改提交样式
This commit is contained in:
parent
0066c04be6
commit
18a31e41d6
@ -28,15 +28,14 @@
|
|||||||
<th>#</th>
|
<th>#</th>
|
||||||
<td>用户</td>
|
<td>用户</td>
|
||||||
<th>提交时间</th>
|
<th>提交时间</th>
|
||||||
<th>结果</th>
|
|
||||||
<th>运行时间</th>
|
|
||||||
<th>语言</th>
|
<th>语言</th>
|
||||||
|
<th>运行时间</th>
|
||||||
|
<th>结果</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for item in submissions %}
|
{% for item in submissions %}
|
||||||
<tr class="{{ item.result|translate_result_class }}">
|
<tr>
|
||||||
|
|
||||||
{% ifequal item.user_id request.user.id %}
|
{% ifequal item.user_id request.user.id %}
|
||||||
<th scope="row"><a href="/submission/{{ item.id }}/" id="id_{{ forloop.counter }}">
|
<th scope="row"><a href="/submission/{{ item.id }}/" id="id_{{ forloop.counter }}">
|
||||||
{{ forloop.counter |add:start_id }}</a></th>
|
{{ forloop.counter |add:start_id }}</a></th>
|
||||||
@ -45,9 +44,10 @@
|
|||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
|
|
||||||
<td>{{ item.user_id|get_username }}</td>
|
<td>{{ item.user_id|get_username }}</td>
|
||||||
|
|
||||||
<td>{{ item.create_time }}</td>
|
<td>{{ item.create_time }}</td>
|
||||||
<td>{{ item.result|translate_result }}</td>
|
<td>
|
||||||
|
{{ item.language|translate_language }}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if item.accepted_answer_time %}
|
{% if item.accepted_answer_time %}
|
||||||
{{ item.accepted_answer_time }}ms
|
{{ item.accepted_answer_time }}ms
|
||||||
@ -55,8 +55,8 @@
|
|||||||
--
|
--
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="alert-{{ item.result|translate_result_class }}">
|
||||||
{{ item.language|translate_language }}
|
<strong>{{ item.result|translate_result }}</strong>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user