Commit 3c6e144608b655ff1b43ec33baf020d19d460ba8
Committed by
Dmitriy Zaporozhets
1 parent
a96cf3ad
Exists in
master
and in
4 other branches
add dashboard teams block
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
app/controllers/dashboard_controller.rb
... | ... | @@ -18,6 +18,8 @@ class DashboardController < ApplicationController |
18 | 18 | @projects |
19 | 19 | end |
20 | 20 | |
21 | + @teams = (UserTeam.with_member(current_user) + UserTeam.created_by(current_user)).uniq | |
22 | + | |
21 | 23 | @projects = @projects.page(params[:page]).per(30) |
22 | 24 | |
23 | 25 | @events = Event.in_projects(current_user.authorized_projects.pluck(:id)) | ... | ... |
app/views/dashboard/_sidebar.html.haml