diff --git a/templates/repo/debugjob/index.tmpl b/templates/repo/debugjob/index.tmpl index a50c35eda..dcededd33 100755 --- a/templates/repo/debugjob/index.tmpl +++ b/templates/repo/debugjob/index.tmpl @@ -388,7 +388,7 @@
- {{if .CanDel}} + {{if .CanDebug}} {{$.i18n.Tr "repo.submit_image"}} {{else}} {{$.i18n.Tr "repo.submit_image"}} @@ -396,7 +396,7 @@
- {{if .CanDel}} + {{if .CanDebug}} {{$.i18n.Tr "repo.download"}} {{else}} {{$.i18n.Tr "repo.download"}} diff --git a/templates/repo/modelarts/trainjob/show.tmpl b/templates/repo/modelarts/trainjob/show.tmpl index 0be93fc8f..1b8c13ef8 100755 --- a/templates/repo/modelarts/trainjob/show.tmpl +++ b/templates/repo/modelarts/trainjob/show.tmpl @@ -196,7 +196,7 @@ td, th {
{{$.CsrfTokenHtml}} - {{if .CanModify}} + {{if and (.CanModify) (eq .Status "COMPLETED")}} {{$.i18n.Tr "repo.modelarts.create_model"}} {{else}} {{$.i18n.Tr "repo.modelarts.create_model"}}