Fixed issue 268, atom feed corrupt.
This commit is contained in:
14
src/IDF/templates/idf/downloads/feedfragment.xml
Normal file
14
src/IDF/templates/idf/downloads/feedfragment.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<entry>
|
||||
<title>{$title}</title>
|
||||
<link href="{$url}"/>
|
||||
<id>{$url}</id>
|
||||
<updated>{$date}</updated>
|
||||
<author>{$file.get_submitter()}</author>
|
||||
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
|
||||
<p>{$file} - {$file.filesize|ssize}</p>
|
||||
{if $file.changelog}
|
||||
<h2>{trans 'Details'}</h2>
|
||||
{markdown $file.changelog, $request}
|
||||
{/if}
|
||||
</div></content>
|
||||
</entry>
|
@@ -4,5 +4,6 @@
|
||||
<link href="{$feedurl}" rel="self"/>
|
||||
<link href="{$viewurl}"/>
|
||||
<id>{$feedurl}</id>
|
||||
<updated>{$date}</updated>
|
||||
{$body}
|
||||
</feed>
|
||||
|
21
src/IDF/templates/idf/issues/feedfragment.xml
Normal file
21
src/IDF/templates/idf/issues/feedfragment.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<entry>
|
||||
<title>{$title} - {$issue.get_status}</title>
|
||||
<link href="{$url}"/>
|
||||
<id>{$url}</id>
|
||||
<updated>{$date}</updated>
|
||||
<author>{$author}</author>
|
||||
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
|
||||
<pre>{issuetext $c.content, $request}</pre>
|
||||
{assign $attachments = $c.get_attachment_list()}
|
||||
{if $attachments.count() > 0}
|
||||
<hr align="left" class="attach" />
|
||||
<ul>
|
||||
{foreach $attachments as $a}<li><a href="{url 'IDF_Views_Issue::viewAttachment', array($project.shortname, $a.id, $a.filename)}">{$a.filename}</a> - {$a.filesize|ssize}</li>{/foreach}
|
||||
</ul>{/if}
|
||||
{if $c.changes}
|
||||
{foreach $c.changes as $w => $v}
|
||||
<strong>{if $w == 'su'}{trans 'Summary:'}{/if}{if $w == 'st'}{trans 'Status:'}{/if}{if $w == 'ow'}{trans 'Owner:'}{/if}{if $w == 'lb'}{trans 'Labels:'}{/if}</strong> {if $w == 'lb'}{assign $l = implode(', ', $v)}{$l}{else}{$v}{/if}<br />
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div></content>
|
||||
</entry>
|
11
src/IDF/templates/idf/source/feedfragment.xml
Normal file
11
src/IDF/templates/idf/source/feedfragment.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<entry>
|
||||
<title>{blocktrans}{$cproject.name}: Commit {$c.scm_id}{/blocktrans}</title>
|
||||
<link href="{$url}"/>
|
||||
<author>{$author}</author>
|
||||
<id>{$url}</id>
|
||||
<updated>{$date}</updated>
|
||||
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
|
||||
{issuetext $c.summary, $request}{if $c.fullmessage}<br /><br />
|
||||
{issuetext $c.fullmessage, $request, true, false, true, true, true}{/if}
|
||||
</div></content>
|
||||
</entry>
|
11
src/IDF/templates/idf/wiki/feedfragment.xml
Normal file
11
src/IDF/templates/idf/wiki/feedfragment.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<entry>
|
||||
<title>{$title}</title>
|
||||
<link href="{$url}"/>
|
||||
<id>{$url}:{$rev.id}</id>
|
||||
<updated>{$date}</updated>
|
||||
<author>{$rev.get_submitter()}</author>
|
||||
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
|
||||
{if !$create}<p><strong>{trans 'Changes:'}</strong> {$rev.summary}:</p>{/if}
|
||||
{markdown $rev.content, $request}
|
||||
</div></content>
|
||||
</entry>
|
Reference in New Issue
Block a user