diff --git a/templates/repo/debugjob/index.tmpl b/templates/repo/debugjob/index.tmpl
index 7e6cbdd82..698a29ecb 100755
--- a/templates/repo/debugjob/index.tmpl
+++ b/templates/repo/debugjob/index.tmpl
@@ -334,10 +334,15 @@
{{end}}
{{else}}
-
-
- {{$.i18n.Tr "repo.debug_again"}}
-
+ {{if eq .Status "RUNNING"}}
+
+ {{$.i18n.Tr "repo.debug"}}
+
+ {{else}}
+
+ {{$.i18n.Tr "repo.debug_again"}}
+
+ {{end}}
{{end}}