public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
atom feed for /events.

Signed-off-by: David A. Cuadrado <krawek@gmail.com>
David A. Cuadrado (author)
Tue Apr 29 10:29:20 -0700 2008
commit  24d5ad70d8d132cb0f50b79deb5eb4e55b6a825f
tree    38745e0b2725c449f254775eb33e1c172c6a1803
parent  8a4fc407fecb742c0d1878a1f5829950169033a6
...
2
3
4
 
 
 
 
 
 
5
6
7
...
2
3
4
5
6
7
8
9
10
11
12
13
0
@@ -2,6 +2,12 @@ class EventsController < ApplicationController
0
   def index
0
     @events = Event.paginate(:all, :order => "events.created_at asc",
0
                   :page => params[:page], :include => [:user])
0
+ @atom_auto_discovery_url = formatted_events_path(:atom)
0
+
0
+ respond_to do |if_format_is|
0
+ if_format_is.html {}
0
+ if_format_is.atom {}
0
+ end
0
   end
0
   
0
 end
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
 
0
@@ -1,5 +1,6 @@
0
 <% @page_title = "Events" -%>
0
 
0
+<h2>System Activities<%= link_to image_tag("feed.png", :width => 24, :height => 24), @atom_auto_discovery_url %></h2>
0
+
0
 <%= render :partial => "events", :object => @events -%>
0
 
0
-<%= will_paginate @events -%>

Comments

    No one has commented yet.