From 27fc1dfa343916fe5d043664fa01cbcbb756a780 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 9 Dec 2021 14:41:00 +0800 Subject: [PATCH] fix issue --- templates/repo/debugjob/index.tmpl | 40 ++++++++---------------------- 1 file changed, 10 insertions(+), 30 deletions(-) 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 @@