Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/V1.22.3.1^2
zouap 4 years ago
parent
commit
9d461151c5
2 changed files with 6 additions and 2 deletions
  1. +1
    -1
      modules/cloudbrain/cloudbrain.go
  2. +5
    -1
      public/home/home.js

+ 1
- 1
modules/cloudbrain/cloudbrain.go View File

@@ -236,7 +236,7 @@ func GenerateTask(ctx *context.Context, displayJobName, jobName, image, command,
if string(models.JobTypeBenchmark) == jobType {
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobID, jobName, models.ActionCreateBenchMarkTask)
} else {
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobID, jobName, models.ActionCreateDebugGPUTask)
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobID, displayJobName, models.ActionCreateDebugGPUTask)
}

return nil


+ 5
- 1
public/home/home.js View File

@@ -129,10 +129,14 @@ socket.onmessage = function (e) {
html += recordPrefix + actionName;
html += " <a href=\"" + getRepoLink(record) + "\" rel=\"nofollow\">" + getRepotext(record) + "</a>"
}
else if(record.OpType == "24" || record.OpType == "25" || record.OpType == "26" || record.OpType == "27" || record.OpType == "28" || record.OpType == "29" || record.OpType == "30"){
else if(record.OpType == "24" || record.OpType == "26" || record.OpType == "27" || record.OpType == "28" || record.OpType == "30"){
html += recordPrefix + actionName;
html += " <a href=\"" + getTaskLink(record) + "\" rel=\"nofollow\">" + record.RefName + "</a>"
}
else if(record.OpType == "25" || record.OpType == "29"){
html += recordPrefix + actionName;
html += " <a href=\"" + getTaskLink(record) + "\" rel=\"nofollow\">" + record.Content + "</a>"
}
else{
continue;
}


Loading…
Cancel
Save