Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Nov 28, 2021
1 parent 0b1d8ed commit 55402fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
10 changes: 0 additions & 10 deletions core/src/main/resources/hudson/cli/CLIAction/example.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ 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">
<st:once>
<style type="text/css">
pre {
color: white;
background-color: black;
padding: 1em;
font-weight: bold;
}
</style>
</st:once>
<pre id="example">java -jar <a href="${rootURL}/jnlpJars/jenkins-cli.jar" style="color: white">jenkins-cli.jar</a> -s ${h.inferHudsonURL(request)} <j:if test="${it.webSocketSupported}">-webSocket</j:if> ${commandArgs}</pre>
</j:jelly>

11 changes: 8 additions & 3 deletions war/src/main/less/base/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,14 @@ td.tab {
}

pre {
white-space: pre-wrap; /* css-3 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
margin: 0 0 2rem;
padding: 1rem;
border-radius: 10px;
color: white;
background-color: black;
font-weight: bold;
}

pre a {
Expand Down

0 comments on commit 55402fa

Please sign in to comment.