Fixed issue 71, add atom feeds.
The basic building block is here with the feed of the timeline, it is rather easy to add the feed other elements based on this work. This will require iterations and polishing.
This commit is contained in:
13
src/IDF/templates/idf/index.atom
Normal file
13
src/IDF/templates/idf/index.atom
Normal file
@@ -0,0 +1,13 @@
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{$title}, {$project} - {$project.shortdesc}</title>
|
||||
{if !$user.isAnonymous()} <subtitle>{blocktrans}Personal project feed for {$user}.{/blocktrans}</subtitle>{/if}
|
||||
<link href="{$feedurl}" rel="self"/>
|
||||
<link href="{$viewurl}"/>
|
||||
<updated>{$updated}</updated>
|
||||
<author>
|
||||
<name>Not given</name>
|
||||
<email>Not given</email>
|
||||
</author>
|
||||
<id>{$feedurl}</id>
|
||||
{$body}
|
||||
</feed>
|
@@ -1,4 +1,5 @@
|
||||
{extends "idf/base.html"}
|
||||
{block extraheader}<link rel="alternate" type="application/atom+xml" title="{trans 'Latest updates'}" href="{$feedurl}"/>{/block}
|
||||
{block docclass}yui-t2{/block}
|
||||
{block tabhome} class="active"{/block}
|
||||
{block subtabs}
|
||||
|
Reference in New Issue
Block a user