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
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-30 19:22:59 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-30 19:22:59 +0400
commit72b295259ed8565e166a7f2a466ca33d183f6108 (patch)
tree212287c4c19595bf1e41453c796ec6310a6aad7f /app/views
parentd54d3324b1ae46a60712dbb974214e41fca5b93b (diff)
Show only personal projects on profile page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/users/_projects.html.haml2
-rw-r--r--app/views/users/show.html.haml3
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/users/_projects.html.haml b/app/views/users/_projects.html.haml
index 2d97c4545b9..bcaec4a27e7 100644
--- a/app/views/users/_projects.html.haml
+++ b/app/views/users/_projects.html.haml
@@ -1,5 +1,5 @@
.panel.panel-default
- .panel-heading Projects
+ .panel-heading Personal projects
%ul.well-list
- @projects.each do |project|
%li
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index edcaf3acf98..948b59fead1 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -20,4 +20,5 @@
= render @events
.col-md-4
= render 'profile', user: @user
- = render 'projects'
+ - if @projects.present?
+ = render 'projects'