mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: record_detail subtaskId (#371)
This commit is contained in:
1 parent
f16a65a7ed
commit
a31b890c25
3 files changed
+28
-8
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.37.19",
|
"version": "4.37.20",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
@@ -15,10 +15,14 @@
|
|||||||
.col--case, .col--status
|
.col--case, .col--status
|
||||||
border-right: 1px solid $table-border-color
|
border-right: 1px solid $table-border-color
|
||||||
|
|
||||||
+mobile()
|
.subtask
|
||||||
.col--case
|
background-color: #fff !important
|
||||||
display: none
|
height: rem(30px)
|
||||||
|
td
|
||||||
|
padding-top: 0
|
||||||
|
padding-bottom: 0
|
||||||
|
|
||||||
|
+mobile()
|
||||||
.col--time
|
.col--time
|
||||||
width: rem(70px)
|
width: rem(70px)
|
||||||
|
|
||||||
|
|||||||
@@ -36,11 +36,26 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{%- for rcdoc in rdoc.testCases|sort(false,false,'id') -%}
|
{%- for subtaskId,rcdocs in rdoc.testCases|sort(false,false,'id')|groupby('subtaskId') -%}
|
||||||
<tr>
|
{% if rcdocs.length != 1 and rcdocs.length != rdoc.testCases.length %}
|
||||||
<td class="col--case record-status--border {{ model.builtin.STATUS_CODES[rcdoc['status']] }}">
|
<tr class="subtask">
|
||||||
#{{ rcdoc.id|default(loop.index) }}
|
<td class="col--case">
|
||||||
|
#{{ subtaskId|int|default(0) }}
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
{%- for rcdoc in rcdocs -%}
|
||||||
|
{% if rcdocs.length != 1 %}
|
||||||
|
<tr class="case">
|
||||||
|
<td class="col--case record-status--border {{ model.builtin.STATUS_CODES[rcdoc['status']] }}">
|
||||||
|
#{% if rcdocs.length != rdoc.testCases.length %}{{ rcdoc.subtaskId|int|default(0) }}-{% endif %}{{ rcdoc.id|default(loop.index) }}
|
||||||
|
</td>
|
||||||
|
{% else %}
|
||||||
|
<tr class="subtask-case">
|
||||||
|
<td class="col--case record-status--border {{ model.builtin.STATUS_CODES[rcdoc['status']] }}">
|
||||||
|
#{{ rcdoc.subtaskId|int|default(0) }}
|
||||||
|
</td>
|
||||||
|
{% endif %}
|
||||||
<td class="col--status">
|
<td class="col--status">
|
||||||
<span class="icon record-status--icon {{ model.builtin.STATUS_CODES[rcdoc['status']] }}"></span>
|
<span class="icon record-status--icon {{ model.builtin.STATUS_CODES[rcdoc['status']] }}"></span>
|
||||||
<span class="record-status--text {{ model.builtin.STATUS_CODES[rcdoc['status']] }}">
|
<span class="record-status--text {{ model.builtin.STATUS_CODES[rcdoc['status']] }}">
|
||||||
@@ -52,6 +67,7 @@
|
|||||||
<td class="col--memory">{% if rcdoc['status'] == STATUS.STATUS_TIME_LIMIT_EXCEEDED or rcdoc['status'] == STATUS.STATUS_MEMORY_LIMIT_EXCEEDED or rcdoc['status'] == STATUS.STATUS_OUTPUT_LIMIT_EXCEEDED %}≥{% endif %}{{ size(rcdoc.memory, 1024) }}</td>
|
<td class="col--memory">{% if rcdoc['status'] == STATUS.STATUS_TIME_LIMIT_EXCEEDED or rcdoc['status'] == STATUS.STATUS_MEMORY_LIMIT_EXCEEDED or rcdoc['status'] == STATUS.STATUS_OUTPUT_LIMIT_EXCEEDED %}≥{% endif %}{{ size(rcdoc.memory, 1024) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
{%- endfor -%}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user