Commit 4a1b093602ad36094f0f0ab2b8b0d48b2cb6f623

Authored by Dmitriy Zaporozhets
1 parent 590c84c7

add data-page property to all pages

app/views/layouts/navless.html.haml
1 1 !!! 5
2 2 %html{ lang: "en"}
3 3 = render "layouts/head", title: @title
4   - %body{class: "#{app_theme} application"}
  4 + %body{class: "#{app_theme} application", :'data-page' => body_data_page}
5 5 = render "layouts/head_panel", title: @title
6 6 = render "layouts/flash"
7 7  
... ...
app/views/layouts/public.html.haml
1 1 !!! 5
2 2 %html{ lang: "en"}
3 3 = render "layouts/head", title: "Public Projects"
4   - %body{class: "#{app_theme} application"}
  4 + %body{class: "#{app_theme} application", :'data-page' => body_data_page}
5 5 - if current_user
6 6 = render "layouts/head_panel", title: "Public Projects"
7 7 - else
... ...
app/views/layouts/search.html.haml
1 1 !!! 5
2 2 %html{ lang: "en"}
3 3 = render "layouts/head", title: "Search"
4   - %body{class: "#{app_theme} application"}
  4 + %body{class: "#{app_theme} application", :'data-page' => body_data_page}
5 5 = render "layouts/head_panel", title: "Search"
6 6 = render "layouts/flash"
7 7  
... ...
app/views/layouts/snippets.html.haml
1 1 !!! 5
2 2 %html{ lang: "en"}
3 3 = render "layouts/head", title: "Snipepts"
4   - %body{class: "#{app_theme} application"}
  4 + %body{class: "#{app_theme} application", :'data-page' => body_data_page}}
5 5 = render "layouts/head_panel", title: "Snippets"
6 6 = render "layouts/flash"
7 7 %nav.main-nav
... ...