core&ui: support /record?all=1

This commit is contained in:
undefined committed 2023-11-30 05:58:31 +08:00
1 parent 0f610148a0
commit 7d9cc2ae3b
3 files changed
+26 -14

No files matched your search

@@ -6,7 +6,8 @@
+ (("&tid=" + filterTid) if filterTid else "")
+ (("&uidOrName=" + filterUidOrName) if filterUidOrName else "")
+ (("&pid=" + filterPid) if filterPid else "")
+ ("&allDomain=1" if all else "")
+ ("&all=1" if all else "")
+ ("&allDomain=1" if allDomain else "")
) }}
{{ set(UiContext, 'rids', rdocs.map(eval("rdoc=>rdoc._id.toString()"))) }}
<div class="row">
@@ -2,7 +2,7 @@
{% import "components/problem.html" as problem with context %}
<tr data-rid="{{ rdoc['_id'] }}">
{% set _isPretest = rdoc.contest and rdoc.contest.toString() == '000000000000000000000000' %}
{{ record.render_status_td(rdoc, allDomain = all) }}
{{ record.render_status_td(rdoc, allDomain = allDomain) }}
<td class="col--problem col--problem-name">
{% if handler.user.hasPerm(perm.PERM_REJUDGE) and not rdoc.files.hack and not _isPretest %}
<form class="form--inline" method="post" action="{{ url('record_detail', rid=rdoc._id, domainId=rdoc.domainId) }}">