Skip to content

Commit

Permalink
Push
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 11, 2023
1 parent 1f29fbc commit 19a7b6b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"options": {
"parser": "html",
"printWidth": 250,
"htmlWhitespaceSensitivity": "strict"
"htmlWhitespaceSensitivity": "strict",
"singleAttributePerLine": false
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ THE SOFTWARE.
><div>
<j:if test="${it.building}"> ${%beingExecuted(it.executor.timestampString)} </j:if>
<j:if test="${!it.building}"> ${%Took} <a href="${rootURL}/${it.parent.url}buildTimeTrend">${it.durationString}</a> </j:if>
<j:if test="${!empty(app.nodes) or (it.builtOnStr != null and it.builtOnStr != '')}"> ${%on} <t:node value="${it.builtOn}" valueStr="${it.builtOnStr}" /> </j:if>
<j:if test="${!empty(app.nodes) or (it.builtOnStr != null and it.builtOnStr != '')}">
${%on}
<t:node value="${it.builtOn}" valueStr="${it.builtOnStr}" />
</j:if>
</div>
</div>

Expand Down
6 changes: 4 additions & 2 deletions core/src/main/resources/hudson/model/AbstractItem/_api.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core">
<h2>Fetch/Update config.xml</h2>
<p>
To programmatically obtain the current configuration of this item (<code>config.xml</code>), access <a href="../config.xml" target="_blank">this URL</a> using <code>GET</code>. To programmatically update the configuration based on a modified
<code>config.xml</code> file, you can send a <code>POST</code> request with <code>Content-Type: text/xml</code> header and the XML attached as request body to the <a href="../config.xml">same URL</a>.
To programmatically obtain the current configuration of this item (<code>config.xml</code>), access
<a href="../config.xml" target="_blank">this URL</a>
using <code>GET</code>. To programmatically update the configuration based on a modified <code>config.xml</code> file, you can send a <code>POST</code> request with <code>Content-Type: text/xml</code> header and the XML attached as request body
to the <a href="../config.xml">same URL</a>.
</p>
<h2>Delete a job</h2>
<p> To programmatically delete this job, send an HTTP <code>DELETE</code> request to <a href="../" target="_blank">this URL</a>. </p>
Expand Down
13 changes: 6 additions & 7 deletions core/src/main/resources/hudson/rss20.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,22 @@ THE SOFTWARE.

<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
<l:view contentType="text/xml;charset=UTF-8"
><!-- No whitespace before xml header: -->&lt;?xml version="1.0" encoding="UTF-8"?&gt;
<l:view contentType="text/xml;charset=UTF-8"><!-- No whitespace before xml header: -->&lt;?xml version="1.0" encoding="UTF-8"?&gt;
<!-- RSS 2.0 feed. See http://cyber.law.harvard.edu/rss/rss.html for the format -->
<rss version="2.0">
<channel>
<title>${title}</title>
<link >${app.rootUrl}${url}</link/>
<link>${app.rootUrl}${url}</link>
<description>${title}</description>

<j:forEach var="e" items="${entries}">
<j:forEach var="e" items="${entries}" >
<item>
<title>${adapter.getEntryTitle(e)}</title>
<link >${app.rootUrl}${h.encode(adapter.getEntryUrl(e))}</link/>
<link>${app.rootUrl}${h.encode(adapter.getEntryUrl(e))}</link>
<guid isPermaLink="false">${adapter.getEntryID(e)}</guid>
<pubDate>${h.rfc822Date(adapter.getEntryTimestamp(e))}</pubDate>
<author><st:out value="${adapter.getEntryAuthor(e)}" /></author>
<j:set var="desc" value="${adapter.getEntryDescription(e)}" />
<author><st:out value="${adapter.getEntryAuthor(e)}"/></author>
<j:set var="desc" value="${adapter.getEntryDescription(e)}"/>
<j:if test="${desc!=null}">
<description>${desc}</description>
</j:if>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ THE SOFTWARE.

<l:main-panel>
<h1>
<span class="icon-lg">
<l:icon src="${it.icon}" /> </span
>${it.caption} ${%System Information}
<span class="icon-lg"> <l:icon src="${it.icon}" /> </span>${it.caption} ${%System Information}
</h1>

<j:choose>
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/hudson/progressBar.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ THE SOFTWARE.
href="${attrs.href}"
style="
$ {
attrs.href!=null? 'cursor:pointer' : null;
attrs.href!=null?'cursor:pointer' : null;
}
"
>
Expand Down

0 comments on commit 19a7b6b

Please sign in to comment.