summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-03-01 11:22:27 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-03-01 11:22:27 -0500
commit10eb6d3cd7c9777d38558017073997d3b5be1c98 (patch)
tree8c526c17d2b9aa9ff422f72b1ca4a8d1bebbaeed
parent48ae8ef165a426e5899201789f9b6714ca21e808 (diff)
downloadgitlab-ce-10eb6d3cd7c9777d38558017073997d3b5be1c98.tar.gz
Respond with 'show' view. Tab content will be loaded dinamically
-rw-r--r--app/controllers/users_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index bbf92e27aae..a1ab9936535 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -22,7 +22,7 @@ class UsersController < ApplicationController
load_groups
respond_to do |format|
- format.html
+ format.html { render 'show' }
format.json do
render json: {
html: view_to_html_string("shared/groups/_list", groups: @groups)
@@ -35,7 +35,7 @@ class UsersController < ApplicationController
load_projects
respond_to do |format|
- format.html
+ format.html { render 'show' }
format.json do
render json: {
html: view_to_html_string("shared/projects/_list", projects: @projects, remote: true)
@@ -48,7 +48,7 @@ class UsersController < ApplicationController
load_contributed_projects
respond_to do |format|
- format.html
+ format.html { render 'show' }
format.json do
render json: {
html: view_to_html_string("shared/projects/_list", projects: @contributed_projects)