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

Merge pull request #1304 from daniel-beck/JENKINS-23636

[FIXED JENKINS-23636] Indicate node the job workspace is on
......@@ -1890,7 +1890,14 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
req.getView(this,"noWorkspace.jelly").forward(req,rsp);
return null;
} else {
return new DirectoryBrowserSupport(this, ws, getDisplayName()+" workspace", "folder.png", true);
Computer c = ws.toComputer();
String title;
if (c == null) {
title = Messages.AbstractProject_WorkspaceTitle(getDisplayName());
} else {
title = Messages.AbstractProject_WorkspaceTitleOnComputer(getDisplayName(), c.getDisplayName());
}
return new DirectoryBrowserSupport(this, ws, title, "folder.png", true);
}
}
......
......@@ -2060,7 +2060,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
if(Functions.isArtifactsPermissionEnabled()) {
checkPermission(ARTIFACTS);
}
return new DirectoryBrowserSupport(this, getArtifactManager().root(), project.getDisplayName() + ' ' + getDisplayName(), "package.png", true);
return new DirectoryBrowserSupport(this, getArtifactManager().root(), Messages.Run_ArtifactsBrowserTitle(project.getDisplayName(), getDisplayName()), "package.png", true);
}
/**
......
......@@ -28,6 +28,7 @@ THE SOFTWARE.
<l:layout title="${it.title} : ${path}">
<st:include page="sidepanel.jelly" it="${it.owner}"/>
<l:main-panel>
<h1><l:breakable value="${it.title}"/></h1>
<div class="dirTree">
<!-- parent path -->
<div class="parentPath">
......
......@@ -46,6 +46,8 @@ AbstractProject.ETA=\ (ETA:{0})
AbstractProject.NoBuilds=No existing build. Scheduling a new one.
AbstractProject.NoSCM=No SCM
AbstractProject.NoWorkspace=No workspace is available, so can\u2019t check for updates.
AbstractProject.WorkspaceTitle=Workspace of {0}
AbstractProject.WorkspaceTitleOnComputer=Workspace of {0} on {1}
AbstractProject.PollingABorted=SCM polling aborted
AbstractProject.ScmAborted=SCM check out aborted
AbstractProject.WorkspaceOffline=Workspace is offline.
......@@ -225,6 +227,7 @@ Run.ArtifactsPermission.Description=\
builds. If you don\u2019t want an user to access the artifacts, you can do so by \
revoking this permission.
Run.InProgressDuration={0} and counting
Run.ArtifactsBrowserTitle=Artifacts of {0} {1}
Run.Summary.Stable=stable
Run.Summary.Unstable=unstable
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册