Merge branch 'stylesheet'
[gitphp.git] / templates / atom.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{*
 *  atom.tpl
 *  gitphp: A PHP git repository browser
 *  Component: Atom feed template
 *
 *  Copyright (C) 2010 Christian Weiske <cweiske@cweiske.de>
 *}
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>{$project->GetProject()}</title>
  <subtitle type="text">{$project->GetProject()} log</subtitle>
  <link href="{scripturl}?p={$project->GetProject()|urlencode}&amp;a=summary"/>
  <link rel="self" href="{scripturl}?p={$project->GetProject()|urlencode}&amp;a=atom"/>
  <id>{scripturl}?p={$project->GetProject()|urlencode}</id>
  {if $log}
  <updated>{$log.0->GetCommitterEpoch()|date_format:"%FT%T+00:00"}</updated>
  {/if}

{foreach from=$log item=logitem}
  <entry>
    <id>{scripturl}?p={$project->GetProject()|urlencode}&amp;a=commit&amp;h={$logitem->GetHash()}</id>
    <title>{$logitem->GetTitle()|escape:'html'}</title>
    <author>
      <name>{$logitem->GetAuthorName()|escape:'html'}</name>
    </author>
    <published>{$logitem->GetCommitterEpoch()|date_format:"%FT%T+00:00"}</published>
    <updated>{$logitem->GetCommitterEpoch()|date_format:"%FT%T+00:00"}</updated>
    <link rel="alternate" href="{scripturl}?p={$project->GetProject()|urlencode}&amp;a=commit&amp;h={$logitem->GetHash()}"/>
    <summary>{$logitem->GetTitle()|escape:'html'}</summary>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
        {foreach from=$logitem->GetComment() item=line}
          {$line|htmlspecialchars}<br />
        {/foreach}
        </p>
        <ul>
        {foreach from=$logitem->DiffToParent() item=diffline}
          <li>{$diffline->GetToFile()|htmlspecialchars}</li>
        {/foreach}
        </ul>
      </div>
    </content>
  </entry>
{/foreach}

</feed>

comments