Commit 788a3f9b authored by Drew Blessing's avatar Drew Blessing

Add last push widget to starred projects dashboard

parent 529cf138
...@@ -20,6 +20,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController ...@@ -20,6 +20,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController
@projects = current_user.starred_projects @projects = current_user.starred_projects
@projects = @projects.includes(:namespace, :forked_from_project, :tags) @projects = @projects.includes(:namespace, :forked_from_project, :tags)
@projects = @projects.sort(@sort = params[:sort]) @projects = @projects.sort(@sort = params[:sort])
@last_push = current_user.recent_push
@groups = [] @groups = []
respond_to do |format| respond_to do |format|
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
= render 'dashboard/projects_head' = render 'dashboard/projects_head'
- if @last_push
= render "events/event_last_push", event: @last_push
- if @projects.any? - if @projects.any?
= render 'projects' = render 'projects'
- else - else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment