Permalink
Browse files

added missed rss builder, closes ticket #2

  • Loading branch information...
1 parent 04ec7be commit 6cb10b0fe4ed5b9d593eb1e5ae908c3f2ae38a80 @molpe molpe committed Nov 23, 2009
Showing with 21 additions and 1 deletion.
  1. +2 −1 CHANGELOG.md
  2. +19 −0 app/views/groups/index.rss.builder
View
@@ -6,7 +6,8 @@ Edge
* Better messages for bidirectional friendships
* Added translations for Brazilian Portuguese
* Fixed: searching only active profiles
-* Set profile's first name == login by default
+* Fixed: a profile can also be found by login
+* Fixed: add rss template for groups (closes ticket #2)
0.5.4
----
@@ -0,0 +1,19 @@
+xml.instruct! :xml, :version=>"1.0"
+xml.rss(:version=>"2.0"){
+ xml.channel{
+ xml.title("#{config['plugins.tog_core.site.name']} #{I18n.t('tog_social.groups.site.last_groups')}")
+ xml.link groups_url
+ xml.description("#{@groups.size} #{I18n.t('tog_social.groups.site.last_groups')}")
+ xml.language(I18n.locale.to_s)
+ for g in @groups
+ xml.item do
+ xml.title(g.name)
+ xml.description(g.description)
+ xml.pubDate(g.creation_date(:long))
+ xml.author(g.author.profile.full_name)
+ xml.link(group_url(g))
+ xml.guid(g.id)
+ end
+ end
+ }
+}

0 comments on commit 6cb10b0

Please sign in to comment.