| ... | @@ -3,11 +3,12 @@ class DashboardController < ApplicationController |
... | @@ -3,11 +3,12 @@ class DashboardController < ApplicationController |
|
|
|
|
|
|
|
def index
|
|
def index
|
|
|
@projects = current_user.projects_with_events.page(params[:page]).per(40)
|
|
@projects = current_user.projects_with_events.page(params[:page]).per(40)
|
|
|
@events = Event.recent_for_user(current_user).limit(20)
|
|
@events = Event.recent_for_user(current_user).limit(20).offset(params[:offset] || 0)
|
|
|
@last_push = current_user.recent_push
|
|
@last_push = current_user.recent_push
|
|
|
|
|
|
|
|
respond_to do |format|
|
|
respond_to do |format|
|
|
|
format.html
|
|
format.html
|
|
|
|
format.js
|
|
|
format.atom { render :layout => false }
|
|
format.atom { render :layout => false }
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
| ... | |
... | |
| ... | | ... | |