mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 12:58:42 +00:00
feat(remote_judger/loj): show remote problem basic info in result
This commit is contained in:
parent
464e5a965d
commit
1842b22ae1
@ -458,7 +458,14 @@ export default class LibreojProvider implements IBasicProvider {
|
|||||||
|
|
||||||
let details = '';
|
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
|
// Samples
|
||||||
if (body.progress.samples) {
|
if (body.progress.samples) {
|
||||||
|
Loading…
Reference in New Issue
Block a user