From 12e55e4645ee9703cbaba115694c3ea79b762669 Mon Sep 17 00:00:00 2001 From: Daniel Beck Date: Fri, 13 Mar 2015 14:49:20 +0100 Subject: [PATCH] [JENKINS-27414] Don't offer to restart if unsupported --- .../jenkins/model/Jenkins/_restart.jelly | 15 +++++++++++---- .../jenkins/model/Jenkins/_safeRestart.jelly | 15 +++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/core/src/main/resources/jenkins/model/Jenkins/_restart.jelly b/core/src/main/resources/jenkins/model/Jenkins/_restart.jelly index 7816f469c5..cfead03b2d 100644 --- a/core/src/main/resources/jenkins/model/Jenkins/_restart.jelly +++ b/core/src/main/resources/jenkins/model/Jenkins/_restart.jelly @@ -28,10 +28,17 @@ THE SOFTWARE. -
- ${%Are you sure about restarting Jenkins?} - - + + +
+ ${%Are you sure about restarting Jenkins?} + + +
+ + ${%Jenkins cannot restart itself as currently configured.} + +
\ No newline at end of file diff --git a/core/src/main/resources/jenkins/model/Jenkins/_safeRestart.jelly b/core/src/main/resources/jenkins/model/Jenkins/_safeRestart.jelly index 3a76e6af82..e37bf2ece0 100644 --- a/core/src/main/resources/jenkins/model/Jenkins/_safeRestart.jelly +++ b/core/src/main/resources/jenkins/model/Jenkins/_safeRestart.jelly @@ -28,10 +28,17 @@ THE SOFTWARE. -
- ${%Are you sure about restarting Jenkins? Jenkins will restart once all running jobs are finished.} - - + + +
+ ${%Are you sure about restarting Jenkins? Jenkins will restart once all running jobs are finished.} + + +
+ + ${%Jenkins cannot restart itself as currently configured.} + +
\ No newline at end of file