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

+5 -1
View File
@@ -183,6 +183,10 @@ export class ContestScoreboardHandler extends Handler {
if (ignoreLock && !this.user.own(tdoc)) {
this.checkPerm(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD);
}
const pdict = await problem.getList(domainId, tdoc.pids, true, undefined, false, [
// Problem statistics display is allowed as we can view submission info in scoreboard.
...problem.PROJECTION_CONTEST_LIST, 'nSubmit', 'nAccept',
]);
const [, rows, udict, , nPages] = await contest.getScoreboard.call(this, domainId, tid, false, page, ignoreLock);
const path = [
['Hydro', 'homepage'],
@@ -192,7 +196,7 @@ export class ContestScoreboardHandler extends Handler {
];
this.response.template = 'contest_scoreboard.html';
this.response.body = {
tdoc, rows, path, udict, nPages, page,
tdoc, rows, path, udict, nPages, page, pdict,
};
}
}