Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1964/head
zouap 3 years ago
parent
commit
4be35d2e4f
2 changed files with 7 additions and 2 deletions
  1. +1
    -1
      options/locale/locale_en-US.ini
  2. +6
    -1
      public/home/home.js

+ 1
- 1
options/locale/locale_en-US.ini View File

@@ -2844,7 +2844,7 @@ mirror_sync_create = synced new reference <a href="%s/src/%s">%[2]s</a> to <a hr
mirror_sync_delete = synced and deleted reference <code>%[2]s</code> at <a href="%[1]s">%[3]s</a> from mirror mirror_sync_delete = synced and deleted reference <code>%[2]s</code> at <a href="%[1]s">%[3]s</a> from mirror
approve_pull_request = `approved <a href="%s/pulls/%s">%s#%[2]s</a>` approve_pull_request = `approved <a href="%s/pulls/%s">%s#%[2]s</a>`
reject_pull_request = `suggested changes for <a href="%s/pulls/%s">%s#%[2]s</a>` reject_pull_request = `suggested changes for <a href="%s/pulls/%s">%s#%[2]s</a>`
upload_dataset=`upload dataset <a href="%s/datasets?type=%s">%s</a>`
upload_dataset=`upload dataset <a href="%s/datasets">%s</a>`
task_gpudebugjob=`created CPU/GPU type debugging task<a href="%s/cloudbrain/%s">%s</a>` task_gpudebugjob=`created CPU/GPU type debugging task<a href="%s/cloudbrain/%s">%s</a>`
task_npudebugjob=`created NPU type debugging task <a href="%s/modelarts/notebook/%s">%s</a>` task_npudebugjob=`created NPU type debugging task <a href="%s/modelarts/notebook/%s">%s</a>`
task_nputrainjob=`created NPU training task<a href="%s/modelarts/train-job/%s">%s</a>` task_nputrainjob=`created NPU training task<a href="%s/modelarts/train-job/%s">%s</a>`


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

@@ -99,6 +99,11 @@ socket.onmessage = function (e) {
console.log("receive action type=" + record.OpType + " name=" + actionName + " but user is null."); console.log("receive action type=" + record.OpType + " name=" + actionName + " but user is null.");
continue; continue;
} }
if(record.OpType == "24"){
if(record.Content.indexOf("true") != -1){
continue;
}
}
var recordPrefix = getMsg(record); var recordPrefix = getMsg(record);
if(record.OpType == "6" || record.OpType == "10" || record.OpType == "12" || record.OpType == "13"){ if(record.OpType == "6" || record.OpType == "10" || record.OpType == "12" || record.OpType == "13"){
html += recordPrefix + actionName; html += recordPrefix + actionName;
@@ -162,7 +167,7 @@ socket.onmessage = function (e) {
function getTaskLink(record){ function getTaskLink(record){
var re = getRepoLink(record); var re = getRepoLink(record);
if(record.OpType == 24){ if(record.OpType == 24){
re = re + "/datasets?type=" + record.Content;
re = re + "/datasets";
}else if(record.OpType == 25){ }else if(record.OpType == 25){
re = re + "/cloudbrain/" + record.Content; re = re + "/cloudbrain/" + record.Content;
}else if(record.OpType == 26){ }else if(record.OpType == 26){


Loading…
Cancel
Save