Skip to content
代码片段 群组 项目
提交 788a3f9b 编辑于 作者: Drew Blessing's avatar Drew Blessing
浏览文件

Add last push widget to starred projects dashboard

上级 529cf138
No related branches found
No related tags found
无相关合并请求
...@@ -20,6 +20,7 @@ def starred ...@@ -20,6 +20,7 @@ def starred
@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
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册