diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-06-23 10:33:38 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-06-23 10:33:38 -0600 |
commit | 7ce0968a52a5bc013e49865205a8998881884c02 (patch) | |
tree | aab65a1bb5f4071ba953dc09208d21c4a0ed1121 /app/views/users/show.html.haml | |
parent | 8ef649588b396059bccf17e6dab6dec3866b2479 (diff) | |
download | gitlab-ce-7ce0968a52a5bc013e49865205a8998881884c02.tar.gz |
Re-implement page-specific JS in a better way.
This makes larger libraries more cacheable and will allow us to use SRI with the dynamically included libraries.
Diffstat (limited to 'app/views/users/show.html.haml')
-rw-r--r-- | app/views/users/show.html.haml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 92305594a81..9ca351e5147 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -1,6 +1,8 @@ - page_title @user.name - page_description @user.bio -- page_specific_javascripts asset_path("users/application.js") +- content_for :page_specific_javascripts do + = javascript_include_tag 'lib/d3/application.js', {integrity: true, "data-turbolinks-track" => true} + = javascript_include_tag 'users/application.js', {integrity: true, "data-turbolinks-track" => true} - header_title @user.name, user_path(@user) - @no_container = true |