Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 6, 2021
1 parent 3af77d8 commit b4661b0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
13 changes: 8 additions & 5 deletions core/src/main/resources/hudson/cli/CLIAction/command.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ 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">
<l:layout permission="${app.READ}">
<l:layout permission="${app.READ}" title="Command ${command.name}">
<st:include page="sidepanel.jelly" it="${app}"/>
<l:main-panel>
<h1>
<l:icon class="icon-terminal icon-xlg"/>
Command ${command.name}
</h1>
<div class="jenkins-app-bar">
<div class="jenkins-app-bar__content">
<h1>
Command ${command.name}
</h1>
</div>
</div>
<j:set var="commandArgs" value="${command.name}${command.singleLineSummary}"/>
<st:include page="example.jelly"/>
<pre>
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/resources/hudson/cli/CLIAction/index.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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">
<l:layout permission="${app.READ}">
<l:layout permission="${app.READ}" title="${%Jenkins CLI}">
<st:include page="sidepanel.jelly" it="${app}"/>
<l:main-panel>
<div class="jenkins-app-bar">
Expand All @@ -34,7 +34,7 @@ THE SOFTWARE.
</h1>
</div>
</div>
<p>
<p class="jenkins-description">
${%blurb(rootURL)}
</p>
<j:set var="commandArgs" value="help"/>
Expand Down
19 changes: 13 additions & 6 deletions core/src/main/resources/lib/hudson/scriptConsole.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,30 @@ THE SOFTWARE.
<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>

<div class="jenkins-app-bar">
<div class="jenkins-app-bar__content">
<h1>${%Script Console}</h1>
</div>
</div>

<j:choose>
<j:when test="${it.channel != null}">
<p>
<p class="jenkins-description">
${%description}
</p>
<!-- this is where the example goes -->
<d:invokeBody />
<p>
<p class="jenkins-form-description">
${%description2}
</p>

<form action="script" method="post">
<textarea id="script" name="script" class="script">${request.getParameter('script')}</textarea>
<div align="right">
<f:submit value="${%Run}"/>
<div>
<textarea id="script" name="script" class="script">${request.getParameter('script')}</textarea>
</div>
<div>
<f:submit value="${%Run}"/>
</div>
</form>
<st:adjunct includes="org.kohsuke.stapler.codemirror.mode.groovy.groovy"/>
Expand Down
2 changes: 1 addition & 1 deletion war/src/main/less/base/typography.less
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ h6,
color: var(--text-color-secondary);
line-height: 1.66;
margin-top: 0;
margin-bottom: 2rem;
margin-bottom: var(--section-padding);
}

0 comments on commit b4661b0

Please sign in to comment.