Files
GitList/views/rss.twig
Fabien Potencier 65e0bd402b fixed URL management
2012-07-07 08:57:38 +02:00

17 lines
714 B
Twig

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>Latest commits in {{ repo }}:{{ branch }}</title>
<description>RSS provided by GitList</description>
<link>{{ path('homepage') }}</link>
{% for commit in commits %}
<item>
<title>{{ commit.getMessage }}</title>
<description>{{ commit.getAuthor.getName }} authored {{ commit.getShortHash }} in {{ commit.getDate | date('d/m/Y \\a\\t H:i:s') }}</description>
<link>{{ path('commit', {repo: repo, commit: commit.getShortHash}) }}</link>
<pubDate>{{ commit.getDate | date('r') }}</pubDate>
</item>
{% endfor %}
</channel>
</rss>