Cleaned the atom feed to validate against the feedvalidator.

This commit is contained in:
Loic d'Anterroches 2008-12-04 14:37:46 +01:00
parent 2e3330a8ad
commit d6e3b8dca9
5 changed files with 16 additions and 17 deletions

View File

@ -207,9 +207,10 @@ class IDF_Issue extends Pluf_Model
<pre>%%content%%</pre> <pre>%%content%%</pre>
</div></content> </div></content>
</entry>'; </entry>';
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view', $url = Pluf::f('url_base')
array($request->project->shortname, .Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view',
$this->id)); array($request->project->shortname,
$this->id));
$title = sprintf(__('%s: Issue %d created - %s'), $title = sprintf(__('%s: Issue %d created - %s'),
Pluf_esc($request->project->name), Pluf_esc($request->project->name),
$this->id, Pluf_esc($this->summary)); $this->id, Pluf_esc($this->summary));

View File

@ -185,9 +185,10 @@ class IDF_IssueComment extends Pluf_Model
</div></content> </div></content>
</entry>'; </entry>';
$issue = $this->get_issue(); $issue = $this->get_issue();
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view', $url = Pluf::f('url_base')
array($request->project->shortname, .Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view',
$issue->id)); array($request->project->shortname,
$issue->id));
$url .= '#ic'.$this->id; $url .= '#ic'.$this->id;
$title = sprintf(__('%s: Comment on issue %d - %s'), $title = sprintf(__('%s: Comment on issue %d - %s'),
Pluf_esc($request->project->name), Pluf_esc($request->project->name),

View File

@ -210,9 +210,10 @@ class IDF_WikiPage extends Pluf_Model
%%content%% %%content%%
</div></content> </div></content>
</entry>'; </entry>';
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view', $url = Pluf::f('url_base')
array($request->project->shortname, .Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view',
$this->title)); array($request->project->shortname,
$this->title));
$title = sprintf(__('%s: Documentation page %s added - %s'), $title = sprintf(__('%s: Documentation page %s added - %s'),
Pluf_esc($request->project->name), Pluf_esc($request->project->name),
Pluf_esc($this->title), Pluf_esc($this->summary)); Pluf_esc($this->title), Pluf_esc($this->summary));

View File

@ -202,9 +202,10 @@ class IDF_WikiRevision extends Pluf_Model
</div></content> </div></content>
</entry>'; </entry>';
$page = $this->get_wikipage(); $page = $this->get_wikipage();
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view', $url = Pluf::f('url_base')
array($request->project->shortname, .Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view',
$page->title)); array($request->project->shortname,
$page->title));
$title = sprintf(__('%s: Documentation page %s updated - %s'), $title = sprintf(__('%s: Documentation page %s updated - %s'),
Pluf_esc($request->project->name), Pluf_esc($request->project->name),
Pluf_esc($page->title), Pluf_esc($page->summary)); Pluf_esc($page->title), Pluf_esc($page->summary));

View File

@ -3,11 +3,6 @@
{if !$user.isAnonymous()} <subtitle>{blocktrans}Personal project feed for {$user}.{/blocktrans}</subtitle>{/if} {if !$user.isAnonymous()} <subtitle>{blocktrans}Personal project feed for {$user}.{/blocktrans}</subtitle>{/if}
<link href="{$feedurl}" rel="self"/> <link href="{$feedurl}" rel="self"/>
<link href="{$viewurl}"/> <link href="{$viewurl}"/>
<updated>{$updated}</updated>
<author>
<name>Not given</name>
<email>Not given</email>
</author>
<id>{$feedurl}</id> <id>{$feedurl}</id>
{$body} {$body}
</feed> </feed>