Skip to content
Snippets Groups Projects
Commit 3c6e1446 authored by Andrey Kumanyaev's avatar Andrey Kumanyaev Committed by Dmitriy Zaporozhets
Browse files

add dashboard teams block

parent a96cf3ad
No related branches found
No related tags found
2 merge requests!2940Expanding repos and hooks paths in settings,!2746New feature: Teams
Loading
Loading
@@ -18,6 +18,8 @@ class DashboardController < ApplicationController
@projects
end
 
@teams = (UserTeam.with_member(current_user) + UserTeam.created_by(current_user)).uniq
@projects = @projects.page(params[:page]).per(30)
 
@events = Event.in_projects(current_user.authorized_projects.pluck(:id))
Loading
Loading
- if @teams.present?
= render "teams", teams: @teams
- if @groups.present?
= render "groups", groups: @groups
= render "projects", projects: @projects
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment