core: add contest score ratio (#765)

Co-authored-by: panda <panda_dtdyy@outlook.com>
This commit is contained in:
undefinedandpanda authored and GitHub committed 2024-04-01 19:25:18 +08:00
1 parent 9013c4eaa6
commit e25db178fd
11 files changed
+121 -23

No files matched your search

@@ -11,10 +11,12 @@
<table class="data-table">
<colgroup>
<col class="col--problem">
<col class="col--score">
</colgroup>
<thead>
<tr>
<th class="col--problem">{{ _('Problem') }}</th>
<th class="col--score">{{ _('Score') }}</th>
</tr>
</thead>
<tbody>
@@ -25,6 +27,9 @@
{{ problem.render_problem_title(pdict[pid], tdoc=tdoc, invalid=true, alphabetic=true) }}
</a>
</td>
<td class="col--score">
<a class="typo-a" data-tooltip="{{ _('Set Score for Contest') }}" name="set_score" data-pid="{{ pid }}" data-score="{{ tdoc.score[pid]|default(100) }}">{{ tdoc.score[pid]|default(100) }}</a>
</td>
</tr>
{%- endfor -%}
</tbody>