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:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-03-01 19:19:05 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-03-01 19:19:05 +0300
commitef9b78c1e3ab8f14381ca6382aeea34401568aa8 (patch)
tree7a9db26f745c61595465eca6f6fc1e2cde839e9b /app/views/users
parenteed8b179b686fa98256a79e5ae8d2b5967bc5ecd (diff)
Initialize User class on the view
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/show.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index b55989281e6..12cd61f3578 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -107,3 +107,10 @@
.loading-status
= spinner
+
+:javascript
+ var userProfile;
+
+ userProfile = new User({
+ action: "#{controller.action_name}"
+ });