diff options
| author | Douwe Maan <douwe@gitlab.com> | 2015-03-24 16:04:30 +0100 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2015-03-31 09:19:08 +0200 |
| commit | 2d5f4458a004dd5e8ef646a2e166bbfe8e78cf77 (patch) | |
| tree | cc5d48c7c3041ab42671f7b3e6155b9ce2d6490b /app/views/users | |
| parent | 2953e0d19b46a937ee9d84139adbc263c8e89757 (diff) | |
| download | gitlab-ce-2d5f4458a004dd5e8ef646a2e166bbfe8e78cf77.tar.gz | |
Fix admin user projects lists.admin-user-projects
Diffstat (limited to 'app/views/users')
| -rw-r--r-- | app/views/users/_projects.html.haml | 8 | ||||
| -rw-r--r-- | app/views/users/show.html.haml | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/users/_projects.html.haml b/app/views/users/_projects.html.haml index b7383d5594e..297fa537394 100644 --- a/app/views/users/_projects.html.haml +++ b/app/views/users/_projects.html.haml @@ -1,13 +1,13 @@ -- if @contributed_projects.present? +- if local_assigns.has_key?(:contributed_projects) && contributed_projects.present? .panel.panel-default.contributed-projects .panel-heading Projects contributed to = render 'shared/projects_list', - projects: @contributed_projects.sort_by(&:star_count).reverse, + projects: contributed_projects.sort_by(&:star_count).reverse, projects_limit: 5, stars: true, avatar: false -- if @projects.present? +- if local_assigns.has_key?(:projects) && projects.present? .panel.panel-default .panel-heading Personal projects = render 'shared/projects_list', - projects: @projects.sort_by(&:star_count).reverse, + projects: projects.sort_by(&:star_count).reverse, projects_limit: 10, stars: true, avatar: false diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 0653fb871ae..512acb47d84 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -44,7 +44,7 @@ = spinner %aside.col-md-4 = render 'profile', user: @user - = render 'projects' + = render 'projects', projects: @projects, contributed_projects: @contributed_projects :coffeescript $ -> |
