Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-24 18:04:30 +0300
committerDouwe Maan <douwe@gitlab.com>2015-03-31 10:19:08 +0300
commit2d5f4458a004dd5e8ef646a2e166bbfe8e78cf77 (patch)
treecc5d48c7c3041ab42671f7b3e6155b9ce2d6490b /app/views/users/_projects.html.haml
parent2953e0d19b46a937ee9d84139adbc263c8e89757 (diff)
Fix admin user projects lists.
Diffstat (limited to 'app/views/users/_projects.html.haml')
-rw-r--r--app/views/users/_projects.html.haml8
1 files changed, 4 insertions, 4 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