feat(remote_judger/loj): show remote problem basic info in result

This commit is contained in:
Baoshuo Ren 2023-02-06 10:52:53 +08:00
parent 464e5a965d
commit 1842b22ae1
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -458,7 +458,14 @@ export default class LibreojProvider implements IBasicProvider {
let details = '';
details += `<info-block>REMOTE_SUBMISSION_ID = ${id}\nVERDICT = ${status}</info-block>`;
details +=
'<div class="border-bottom p-3">' +
`<p><b>Problem:</b> #${body.meta.problem.displayId}. ${body.meta.problemTitle}</p>` +
`<p><b>Remote submission:</b> <a href="https://loj.ac/s/${id}" target="_blank">${id}</a></p>` +
`<p><b>Remote submit time:</b> ${body.meta.submitTime}</p>` +
`<p><b>Remote account:</b> <a href="https://loj.ac/user/${body.meta.submitter.id}" target="_blank">${body.meta.submitter.username}</a></p>` +
`<p class="mb-0"><b>Verdict:</b> ${status}</p>` +
'</div>';
// Samples
if (body.progress.samples) {