mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-04 23:11:47 +01:00
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:
parent
378800218a
commit
ca8a386dd7
9 changed files with 107 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue