Fix atom feed timestamps on windows
[gitphp.git] / templates / atom.tpl
Christian Weiske 1 {*
2 * atom.tpl
3 * gitphp: A PHP git repository browser
4 * Component: Atom feed template
5 *
6 * Copyright (C) 2010 Christian Weiske <cweiske@cweiske.de>
7 *}
8 <?xml version="1.0" encoding="utf-8"?>
9 <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
10 <title>{$project->GetProject()}</title>
11 <subtitle type="text">{$project->GetProject()} log</subtitle>
Chris Han 12 <link href="{scripturl}?p={$project->GetProject()|rawurlencode}&amp;a=summary"/>
13 <link rel="self" href="{scripturl}?p={$project->GetProject()|rawurlencode}&amp;a=atom"/>
14 <id>{scripturl}?p={$project->GetProject()|rawurlencode}</id>
Chris Han 15 {if $log}
Chris Han 16 <updated>{$log.0->GetCommitterEpoch()|date_format:"%Y-%m-%dT%H:%M:%S+00:00"}</updated>
Chris Han 17 {/if}
Christian Weiske 18
19 {foreach from=$log item=logitem}
20 <entry>
Chris Han 21 <id>{scripturl}?p={$project->GetProject()|rawurlencode}&amp;a=commit&amp;h={$logitem->GetHash()}</id>
Christian Weiske 22 <title>{$logitem->GetTitle()|escape:'html'}</title>
23 <author>
24 <name>{$logitem->GetAuthorName()|escape:'html'}</name>
25 </author>
Chris Han 26 <published>{$logitem->GetCommitterEpoch()|date_format:"%Y-%m-%dT%H:%M:%S+00:00"}</published>
27 <updated>{$logitem->GetCommitterEpoch()|date_format:"%Y-%m-%dT%H:%M:%S+00:00"}</updated>
Chris Han 28 <link rel="alternate" href="{scripturl}?p={$project->GetProject()|rawurlencode}&amp;a=commit&amp;h={$logitem->GetHash()}"/>
Christian Weiske 29 <summary>{$logitem->GetTitle()|escape:'html'}</summary>
30 <content type="xhtml">
31 <div xmlns="http://www.w3.org/1999/xhtml">
32 <p>
33 {foreach from=$logitem->GetComment() item=line}
34 {$line|htmlspecialchars}<br />
35 {/foreach}
36 </p>
37 <ul>
38 {foreach from=$logitem->DiffToParent() item=diffline}
39 <li>{$diffline->GetToFile()|htmlspecialchars}</li>
40 {/foreach}
41 </ul>
42 </div>
43 </content>
44 </entry>
45 {/foreach}
46
47 </feed>
48
comments