Browse Source

fix issue

pull/3418/head
zhoupzh 2 years ago
parent
commit
1293309f96
2 changed files with 5 additions and 2 deletions
  1. +3
    -0
      public/home/home.js
  2. +2
    -2
      templates/user/dashboard/feeds.tmpl

+ 3
- 0
public/home/home.js View File

@@ -294,7 +294,10 @@ function getTaskLink(record){
re = re + "/cloudbrain/train-job/" + record.Content;
}else if(record.OpType == 32 || record.OpType == 33){
re = re + "/grampus/train-job/" + record.Content;
}else if(record.OpType == 39 || record.OpType == 40){
re = re + "/grampus/notebook/" + record.Content;
}
re = encodeURI(re);
return re;
}


+ 2
- 2
templates/user/dashboard/feeds.tmpl View File

@@ -72,9 +72,9 @@
{{$.i18n.Tr "action.comment_pull" .GetRepoLink $index .ShortRepoPath | Str2html}}
{{else if eq .GetOpType 24}}
{{$.i18n.Tr "action.upload_dataset" .GetRepoLink .RefName | Str2html}}
{{else if eq .GetOpType 25}}
{{else if and (eq .GetOpType 25) (eq .GetOpType 39)}}
{{$.i18n.Tr "action.task_gpudebugjob" .GetRepoLink .Content .RefName | Str2html}}
{{else if eq .GetOpType 26}}
{{else if and (eq .GetOpType 26) (eq .GetOpType 40)}}
{{$.i18n.Tr "action.task_npudebugjob" .GetRepoLink .Content .RefName | Str2html}}
{{else if eq .GetOpType 27}}
{{$.i18n.Tr "action.task_nputrainjob" .GetRepoLink .Content .RefName | Str2html}}


Loading…
Cancel
Save