Add last push widget to starred projects dashboard
This commit is contained in:
parent
529cf138a1
commit
788a3f9b94
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue