ui: update acm scoreboard display

This commit is contained in:
undefined committed 2022-03-25 10:53:14 +08:00
1 parent 9f796e7024
commit 3ec549ee9c
12 files changed
+86 -88

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.34.23",
"version": "4.34.24",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -1,23 +1,32 @@
.page--contest_scoreboard
.col--rank
width: rem(60px)
width: rem(45px)
text-align: center
border-right: 1px solid $table-border-color
.col--user
min-width: rem(150px)
.col--total_score, .col--total_time_str, .col--solved_problems
.col--solved, .col--time
width: rem(70px)
text-align: center
.col--total_score
width: rem(100px)
text-align: center
.col--problem_detail
.col--problem
width: rem(100px)
border-left: 1px solid $table-border-color
text-align: center
.scoreboard--acm
.col--problem
width: rem(70px) !important
+mobile()
.col--user
width: auto
.col--problem_detail
.col--problem
display: none
@@ -6,11 +6,11 @@
.col--user
width: rem(140px)
.col--total_score, .col--total_time_str, .col--solved_problems
.col--total_score
width: rem(100px)
text-align: center
.col--problem_detail
.col--problem, .col--record
min-width: rem(100px)
border-left: 1px solid $table-border-color
text-align: center
@@ -19,5 +19,5 @@
.col--user
width: auto
.col--problem_detail
.col--problem, .col--record
display: none
@@ -2,7 +2,7 @@
{% extends "layout/basic.html" %}
{% set type = 'homework' if tdoc.docType == 60 else 'contest' %}
{% block content %}
<div class="row"><div class="medium-12 columns">
<div class="row"><div class="medium-12 columns scoreboard--{{ tdoc.rule }}">
<div class="section visible">
<div class="section__header">
<a class="button" target="_blank" href="{{ url(type + '_scoreboard_download', tid=tdoc.docId, ext='html') }}">
@@ -30,10 +30,12 @@
<tr>
{%- for column in rows[0] -%}
<th class="col--{{ column.type }}">
{% if column.type == 'problem_detail' %}
<a href="{{ url('problem_detail', pid=column.raw, query={tid:tdoc.docId}) }}" data-tooltip="{{ pdict[column.raw].title }}">{{ column.value }}</a>
{% if column.type == 'problem' %}
<a href="{{ url('problem_detail', pid=column.raw, query={tid:tdoc.docId}) }}" data-tooltip="{{ pdict[column.raw].title }}">
{{ column.value }}<br />{{ pdict[column.raw].nAccept }}/{{ pdict[column.raw].nSubmit }}
</a>
{% else %}
{{ column.value }}
{{ column.value|replaceBr|safe }}
{% endif %}
</th>
{%- endfor -%}
@@ -49,7 +51,7 @@
{% set canView = canViewAll or handler.user._id == column.raw %}
{{ user.render_inline(udict[column.raw], badge=false) }}
{% elif column.type == 'record' and column.raw %}
<a href="{{ url('record_detail', rid=column.raw) if canView else '' }}">
<a href="{{ url('record_detail', rid=column.raw) if canView else '' }}" data-tooltip="{{ column.hover }}">
<span style="font-weight:bold;color:{{ utils.status.getScoreColor(column.score|default(column.value)) }}">{{ column.value|replaceBr|safe }}</span>
</a>
{% elif column.type == 'records' %}
+1 -1
View File
@@ -150,7 +150,7 @@
<h1 class="section__title" id="upload" data-heading>{{ _('Dataset Format') }}</h1>
</div>
<div class="section__body typo">
<p>详见<a href="https://hydro.js.org/docs/testdata.html">配置文档</a></p>
<p>详见<a href="https://hydro.js.org/docs/user/testdata/">配置文档</a></p>
</div>
</div>
<div class="section" data-heading-extract-to="#menu-item-wiki_help">