diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-06-07 04:10:28 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-06-07 04:10:28 +0300 |
commit | 8aad78838374c761a69d7f0e9727706a611ebcaf (patch) | |
tree | 03b8605aeb6cf8f99306e6b35848ad1431784c6c /app/views/layouts/application.html.haml | |
parent | 740a6ecba07a056fca481622b4fa89939c225987 (diff) |
Added data-project attribute to body tag.
Diffstat (limited to 'app/views/layouts/application.html.haml')
-rw-r--r-- | app/views/layouts/application.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 2b86b289bbe..504abd8f3e4 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -1,7 +1,7 @@ !!! 5 %html{ lang: "en"} = render "layouts/head" - %body{class: "#{user_application_theme}", 'data-page' => body_data_page} + %body{class: "#{user_application_theme}", 'data-page' => body_data_page, 'data-project' => "#{@project.path if @project}"} = Gon::Base.render_data -# Ideally this would be inside the head, but turbolinks only evaluates page-specific JS in the body. |