Make phorkie search engine friendlier
[phorkie.git] / data / templates / feed-updated.htm
1 <?xml version="1.0" encoding="utf-8"?>
2 <feed xmlns="http://www.w3.org/2005/Atom">
3  <title>{{title}}: Updated pastes</title>
4  <link href="{{url}}"/>
5  <link rel="self" href="{{feedurl}}"/>
6  <id>{{url}}</id>
7 {% set repo = pastes.repos.0 %}
8  <updated>{{repo.modate|date('c')}}</updated>
9
10 {% for repo in pastes.repos %}
11  <entry>
12   <id>{{repo.getLink('display', null, true)}}</id>
13   <title>{{repo.getTitle}}</title>
14   <published>{{repo.crdate|date('c')}}</published>
15   {% set commit = repo.getHistory().0 %}
16   <updated>{{commit.committerTime|date('c')}}</updated>
17   <link rel="alternate" type="text/html" href="{{repo.getLink('display', null, true)}}" />
18   <author>
19    <name>{{commit.committerName}}</name>
20    <email>{{commit.committerEmail}}</email>
21   </author>
22   <summary>{% spaceless %}
23    {% if commit.filesChanged %}
24      {{ntext(commit.filesChanged, "%d file", "%d files")}} changed{% if commit.linesAdded %},{% endif %}
25    {% endif %}
26    {% if commit.linesAdded %}
27      {{ntext(commit.linesAdded, "%d line", "%d lines")}} added{% if commit.linesDeleted %},{% endif %}
28    {% endif %}
29    {% if commit.linesDeleted %}
30      {{ntext(commit.linesDeleted, "%d line", "%d lines")}} deleted
31    {% endif %}
32   {% endspaceless %}</summary>
33  </entry>
34 {% endfor %}
35 </feed>