Skip to content
Browse files

[FIXED JENKINS-37814] make the icon of the script console configurable (


* make the icon of the script console configurable

* we don't need an extra variable

* use <j:choose>
  • Loading branch information
rpionke authored and oleg-nenashev committed Sep 2, 2016
1 parent db61f47 commit a6e1b0bebfe9dc46b3c919c917a1be4438207af7
Showing with 10 additions and 2 deletions.
  1. +10 −2 core/src/main/resources/lib/hudson/scriptConsole.jelly
@@ -26,12 +26,20 @@ THE SOFTWARE.
Called from doScript() to display the execution result and the form.
<?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">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:f="/lib/form">
<l:layout norefresh="true" permission="${h.RUN_SCRIPTS}">
<st:include page="sidepanel.jelly" />

<h1><img src="${imagesURL}/48x48/${it.icon}" width="48" height="48" alt=""/> ${%Script Console}</h1>
<j:when test="${it.icon == null}">
<j:set var="icon" value="notepad.png"/>
<j:set var="icon" value="${it.icon}"/>
<h1><img src="${imagesURL}/48x48/${icon}" width="48" height="48" alt=""/> ${%Script Console}</h1>

<j:when test="${ != null}">

0 comments on commit a6e1b0b

Please sign in to comment.
You can’t perform that action at this time.