Skip to content

Commit

Permalink
[FIXED JENKINS-37814] make the icon of the script console configurable (
Browse files Browse the repository at this point in the history
#2528)

* make the icon of the script console configurable

* we don't need an extra variable

* use <j:choose>
  • Loading branch information
Raphael Pionke authored and oleg-nenashev committed Sep 2, 2016
1 parent db61f47 commit a6e1b0b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions core/src/main/resources/lib/hudson/scriptConsole.jelly
Expand Up @@ -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" />

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

<j:choose>
<j:when test="${it.channel != null}">
Expand Down

0 comments on commit a6e1b0b

Please sign in to comment.