finish migration of the feeds page

This commit is contained in:
Reinier Balt 2010-11-27 17:12:09 +01:00
parent 51106d015e
commit 2fa431ef54
14 changed files with 205 additions and 128 deletions

View file

@ -26,13 +26,19 @@ class FeedlistController < ApplicationController
end
def get_feeds_for_context
context = current_user.contexts.find params[:context_id]
render :partial => 'feed_for_context', :locals => { :context => context }
@context = current_user.contexts.find params[:context_id]
respond_to do |format|
format.html { render :text => "This page should not be called directly"}
format.js
end
end
def get_feeds_for_project
project = current_user.projects.find params[:project_id]
render :partial => 'feed_for_project', :locals => { :project => project }
@project = current_user.projects.find params[:project_id]
respond_to do |format|
format.html { render :text => "This page should not be called directly"}
format.js
end
end
end