Add last push widget to starred projects dashboard

This commit is contained in:
Drew Blessing 2015-09-15 15:33:44 -05:00
parent 529cf138a1
commit 788a3f9b94
2 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController
@projects = current_user.starred_projects
@projects = @projects.includes(:namespace, :forked_from_project, :tags)
@projects = @projects.sort(@sort = params[:sort])
@last_push = current_user.recent_push
@groups = []
respond_to do |format|

View File

@ -3,6 +3,9 @@
= render 'dashboard/projects_head'
- if @last_push
= render "events/event_last_push", event: @last_push
- if @projects.any?
= render 'projects'
- else