From e334b330c29ed538b80365ec0290f1627e78b4b3 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 28 Jan 2009 02:04:44 +0000 Subject: [PATCH] [FIXED HUDSON-2925] show the status of executors on the computer page. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14829 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/Functions.java | 4 ++++ .../hudson/model/Computer/ajaxExecutors.jelly | 8 ++++++++ .../hudson/model/Computer/sidepanel.jelly | 1 + .../main/resources/lib/hudson/executors.jelly | 17 +++++++++++------ 4 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 core/src/main/resources/hudson/model/Computer/ajaxExecutors.jelly diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 2466df1fde..4b294d530a 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -989,6 +989,10 @@ public class Functions { || (href.equals(".") && url.endsWith(".")); } + public List singletonList(T t) { + return Collections.singletonList(t); + } + /** * Gets all the {@link PageDecorator}s. */ diff --git a/core/src/main/resources/hudson/model/Computer/ajaxExecutors.jelly b/core/src/main/resources/hudson/model/Computer/ajaxExecutors.jelly new file mode 100644 index 0000000000..0e70f33942 --- /dev/null +++ b/core/src/main/resources/hudson/model/Computer/ajaxExecutors.jelly @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/core/src/main/resources/hudson/model/Computer/sidepanel.jelly b/core/src/main/resources/hudson/model/Computer/sidepanel.jelly index d77c8622d5..534b55567e 100644 --- a/core/src/main/resources/hudson/model/Computer/sidepanel.jelly +++ b/core/src/main/resources/hudson/model/Computer/sidepanel.jelly @@ -14,5 +14,6 @@ + diff --git a/core/src/main/resources/lib/hudson/executors.jelly b/core/src/main/resources/lib/hudson/executors.jelly index f0036190fc..f7c5ff601c 100644 --- a/core/src/main/resources/lib/hudson/executors.jelly +++ b/core/src/main/resources/lib/hudson/executors.jelly @@ -1,16 +1,21 @@ - + + Displays the status of executors. + + If specified, this is the list of computers whose executors are rendered. If omitted, all the computers + in the system will be rendered. + + + - + - + No. - + ${%Status}