link for only my updates

This commit is contained in:
Kyle Drake 2014-06-27 18:21:58 -04:00
parent fa35da3c12
commit ab95fa01af
2 changed files with 13 additions and 3 deletions

12
app.rb
View file

@ -127,7 +127,17 @@ end
get '/?' do
if current_site
require_login
@suggestions = current_site.suggestions
if current_site.followings_dataset.count == 0
@suggestions = current_site.suggestions
end
if params[:activity] == 'mine'
@events = current_site.latest_events
else
@events = current_site.news_feed
end
halt erb :'home', locals: {site: current_site}
end