Skip to content

Commit

Permalink
Fix RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 11, 2023
1 parent 9cc4cd9 commit c044af7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 6 additions & 8 deletions core/src/main/resources/hudson/rss20.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +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>${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>${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
3 changes: 3 additions & 0 deletions war/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ src/main/scss/_bootstrap.scss

# Incorrectly flagging forwarding slashes in regex
../.github/renovate.json

# Breaks the file
../core/src/main/resources/hudson/rss20.jelly

0 comments on commit c044af7

Please sign in to comment.