Adds RSS and TEXT feeds for projects and contexts. fixes #282

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@238 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2006-05-13 05:58:29 +00:00
parent 378800218a
commit ca8a386dd7
9 changed files with 107 additions and 1 deletions

View file

@ -49,6 +49,18 @@ class FeedController < ApplicationController
@headers["Content-Type"] = "text/plain; charset=utf-8"
end
def list_projects_only
@projects = @user.projects
@description = "Lists all the projects for #{@user.login}."
render :action => 'projects_' + @params['feedtype']
end
def list_contexts_only
@contexts = @user.contexts
@description = "Lists all the contexts for #{@user.login}."
render :action => 'contexts_' + @params['feedtype']
end
protected
# Check whether the token in the URL matches the word in the User's table