Update rss with validator recommendations
[gitphp.git] / templates / rss.tpl
Chris Han 1 {*
2 * rss.tpl
3 * gitphp: A PHP git repository browser
Chris Han 4 * Component: RSS template
Chris Han 5 *
Chris Han 6 * Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
Chris Han 7 *}
8 <?xml version="1.0" encoding="utf-8"?>
Chris Han 9 <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
Chris Han 10 <channel>
Chris Han 11 <title>{$project->GetProject()}</title>
Chris Han 12 <link>{geturl fullurl=true project=$project}</link>
Chris Han 13 <atom:link rel="self" href="{geturl fullurl=true project=$project action=rss}" type="application/rss+xml" />
Chris Han 14 <description>{$project->GetProject()} log</description>
Chris Han 15 <language>en</language>
Chris Han 16
Chris Han 17 {foreach from=$log item=logitem}
Chris Han 18 <item>
Chris Han 19 <title>{$logitem->GetCommitterEpoch()|date_format:"%d %b %R"} - {$logitem->GetTitle()|escape:'html'}</title>
Chris Han 20 <author>{$logitem->GetAuthorEmail()|escape:'html'} ({$logitem->GetAuthorName()|escape:'html'})</author>
Chris Han 21 <pubDate>{$logitem->GetCommitterEpoch()|date_format:"%a, %d %b %Y %H:%M:%S %z"}</pubDate>
Chris Han 22 <guid isPermaLink="true">{geturl fullurl=true project=$project action=commit hash=$logitem}</guid>
23 <link>{geturl fullurl=true project=$project action=commit hash=$logitem}</link>
Chris Han 24 <description>{$logitem->GetTitle()|escape:'html'}</description>
Chris Han 25 <content:encoded>
26 <![CDATA[
Chris Han 27 {foreach from=$logitem->GetComment() item=line}
Chris Han 28 {$line}<br />
29 {/foreach}
Chris Han 30 {foreach from=$logitem->DiffToParent($gitexe) item=diffline}
Chris Han 31 {$diffline->GetToFile()}<br />
Chris Han 32 {/foreach}
33 ]]>
34 </content:encoded>
35 </item>
Chris Han 36 {/foreach}
Chris Han 37
38 </channel>
39 </rss>
40
comments