mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-29 13:28:49 +01:00
finish migration of the feeds page
This commit is contained in:
parent
51106d015e
commit
2fa431ef54
14 changed files with 205 additions and 128 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue