diff --git a/templates/repo/debugjob/index.tmpl b/templates/repo/debugjob/index.tmpl index d97bf76c6..3d360e2a2 100644 --- a/templates/repo/debugjob/index.tmpl +++ b/templates/repo/debugjob/index.tmpl @@ -304,37 +304,31 @@
- {{if and (ne .Status "WAITING") (ne .JobType "DEBUG")}} + - {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} + {{if .CanDebug}} {{if eq .ComputeResource "CPU/GPU"}} - {{if .CanDebug}} - - {{$.i18n.Tr "repo.debug"}} - - {{else}} - - {{$.i18n.Tr "repo.debug"}} - - {{end}} + + {{$.i18n.Tr "repo.debug"}} + {{else}} - + {{$.i18n.Tr "repo.debug"}} {{end}} {{else}} - + {{$.i18n.Tr "repo.debug"}} {{end}}
{{$.CsrfTokenHtml}} - {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} + {{if .CanDel}} {{$.i18n.Tr "repo.stop"}} @@ -361,20 +355,6 @@ {{end}}
-
@@ -394,7 +374,7 @@