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-06-09 13:01:18 +0300
committerDouwe Maan <douwe@gitlab.com>2015-06-09 13:01:18 +0300
commiteb80edd34f6b2230e67b71392eb92e63b61a2d5f (patch)
treeddf0cdcbed4f16f93acf2409d63ee9551b7ad367 /app/views/layouts/application.html.haml
parent4d6a338cc464a17538446ca4114b629f0600e9b1 (diff)
Move page-specific JS out of head and into body.
Diffstat (limited to 'app/views/layouts/application.html.haml')
-rw-r--r--app/views/layouts/application.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index ff23913d7d6..173033f7eab 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -2,6 +2,9 @@
%html{ lang: "en"}
= render "layouts/head"
%body{class: "#{app_theme}", :'data-page' => body_data_page}
+ / Ideally this would be inside the head, but turbolinks only evaluates page-specific JS in the body.
+ = yield :scripts_body_top
+
- if current_user
= render "layouts/header/default", title: header_title
- else