Commit 4a1b093602ad36094f0f0ab2b8b0d48b2cb6f623

Authored by Dmitriy Zaporozhets
1 parent 590c84c7

add data-page property to all pages

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