Skip to content

Commit

Permalink
[JENKINS-11762] Changes to add a configurable display name to jobs
Browse files Browse the repository at this point in the history
Originally-Committed-As: 484d952029b235d889a5d2e4bd9bc44a9707f7ff
  • Loading branch information
Albert So authored and kohsuke committed Jan 3, 2012
1 parent caea5a5 commit 1e65f8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
@@ -1,7 +1,8 @@
<!--
The MIT License
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Stephen Connolly
Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
Stephen Connolly, Yahoo!, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -37,6 +38,10 @@ THE SOFTWARE.
<p:config-blockWhenUpstreamBuilding />
<p:config-blockWhenDownstreamBuilding />
<p:config-customWorkspace />
<f:entry title="${%Display Name}" help="/help/project-config/displayName.html">
<f:textbox name="displayName" value="${it.displayName}"
checkUrl="'${rootURL}/checkDisplayName?displayName='+escape(this.value)+'&amp;jobName=${it.name}'"/>
</f:entry>
</f:advanced>
</f:section>

Expand Down
Expand Up @@ -27,7 +27,10 @@ THE SOFTWARE.
<l:layout title="${it.name}">
<st:include page="sidepanel.jelly" />
<l:main-panel>
<h1>${%Project} ${it.name}</h1>
<h1>${%Project} ${it.displayName}</h1>
<j:if test="${it.name!=it.displayName}">
${%Project name}: ${it.name}
</j:if>
<t:editableDescription permission="${it.CONFIGURE}"/>

<j:choose>
Expand Down

0 comments on commit 1e65f8d

Please sign in to comment.