提交 a63606d0 编写于 作者: D Daniel Beck

Merge pull request #1252 from daniel-beck/JENKINS-17114

[FIX JENKINS-17114] Distinguish 'nodes offline' from 'no nodes'
......@@ -114,7 +114,11 @@ public abstract class CauseOfBlockage {
}
public String getShortDescription() {
return Messages.Queue_AllNodesOffline(label.getName());
if (label.isEmpty()) {
return Messages.Queue_LabelHasNoNodes(label.getName());
} else {
return Messages.Queue_AllNodesOffline(label.getName());
}
}
}
......
......@@ -189,6 +189,7 @@ Label.ProvisionedFrom=Provisioned from {0}
ManageJenkinsAction.DisplayName=Manage Jenkins
MultiStageTimeSeries.EMPTY_STRING=
Queue.AllNodesOffline=All nodes of label \u2018{0}\u2019 are offline
Queue.LabelHasNoNodes=There are no nodes with the label \u2018{0}\u2019
Queue.BlockedBy=Blocked by {0}
Queue.HudsonIsAboutToShutDown=Jenkins is about to shut down
Queue.InProgress=A build is already in progress
......
......@@ -24,9 +24,20 @@ THE SOFTWARE.
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<st:structuredMessageFormat key="description">
<st:structuredMessageArgument>
<a href="${rootURL}/label/${it.label.name}" class="model-link">${it.label.name}</a>
</st:structuredMessageArgument>
</st:structuredMessageFormat>
<j:choose>
<j:when test="${it.label.isEmpty()}">
<st:structuredMessageFormat key="description_no_nodes">
<st:structuredMessageArgument>
<a href="${rootURL}/label/${it.label.name}" class="model-link">${it.label.name}</a>
</st:structuredMessageArgument>
</st:structuredMessageFormat>
</j:when>
<j:otherwise>
<st:structuredMessageFormat key="description">
<st:structuredMessageArgument>
<a href="${rootURL}/label/${it.label.name}" class="model-link">${it.label.name}</a>
</st:structuredMessageArgument>
</st:structuredMessageFormat>
</j:otherwise>
</j:choose>
</j:jelly>
\ No newline at end of file
......@@ -21,4 +21,5 @@
# THE SOFTWARE.
# note for translators: this message is referenced from st:structuredMessageFormat
description=All nodes of label \u2018{0}\u2019 are offline
\ No newline at end of file
description=All nodes of label \u2018{0}\u2019 are offline
description_no_nodes=There are no nodes with the label \u2018{0}\u2019
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册