feat: add commit_url to show
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ function showDetailsModal(para, project, index) {
|
|||||||
fetch(`${BACKEND_URL}/get_scores/${project}?sort_by=${para}`)
|
fetch(`${BACKEND_URL}/get_scores/${project}?sort_by=${para}`)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
modalDetails.innerHTML = data[index].details + "<br><br>";
|
modalDetails.innerHTML = data[index].details + "<br><br>" + (data[index].hash ? `若<b>仓库设置</b>为公开,则可<a href="${data[index].hash}" target="_blank">点击查看</a>评测所对应提交<br><br>` : "");
|
||||||
modal.style.display = "block";
|
modal.style.display = "block";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user