[Jifty-commit] r6102 - wifty/trunk/lib/Wifty
Jifty commits
jifty-commit at lists.jifty.org
Fri Dec 12 11:44:22 EST 2008
Author: ruz
Date: Fri Dec 12 11:44:22 2008
New Revision: 6102
Modified:
wifty/trunk/lib/Wifty/View.pm
Log:
* announce atom feeds right from the page
Modified: wifty/trunk/lib/Wifty/View.pm
==============================================================================
--- wifty/trunk/lib/Wifty/View.pm (original)
+++ wifty/trunk/lib/Wifty/View.pm Fri Dec 12 11:44:22 2008
@@ -101,8 +101,23 @@
template recent => page {
my ($pages) = get(qw(pages));
{ title is _('Updated this week') }
-
show( 'page_list', pages => $pages, id => 'recentupdates' );
+
+ add rel "alternate",
+ type => "application/atom+xml",
+ title => _('Updated this week') .' '. _('(full content)'),
+ href => '/feeds/atom/recent',
+ ;
+ add rel "alternate",
+ type => "application/atom+xml",
+ title => _('Updated this week') .' '. _('(headlines)'),
+ href => '/feeds/atom/recent/headlines',
+ ;
+ add rel "alternate",
+ type => "application/atom+xml",
+ title => _('Updated this week') .' '. _('(diffs)'),
+ href => '/feeds/atom/recent/diffs',
+ ;
};
template pages => page {
More information about the Jifty-commit
mailing list