add data-page property to all pages

This commit is contained in:
Dmitriy Zaporozhets 2013-06-08 17:10:25 +03:00
parent 590c84c7a4
commit 4a1b093602
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
!!! 5
%html{ lang: "en"}
= render "layouts/head", title: @title
%body{class: "#{app_theme} application"}
%body{class: "#{app_theme} application", :'data-page' => body_data_page}
= render "layouts/head_panel", title: @title
= render "layouts/flash"

View file

@ -1,7 +1,7 @@
!!! 5
%html{ lang: "en"}
= render "layouts/head", title: "Public Projects"
%body{class: "#{app_theme} application"}
%body{class: "#{app_theme} application", :'data-page' => body_data_page}
- if current_user
= render "layouts/head_panel", title: "Public Projects"
- else

View file

@ -1,7 +1,7 @@
!!! 5
%html{ lang: "en"}
= render "layouts/head", title: "Search"
%body{class: "#{app_theme} application"}
%body{class: "#{app_theme} application", :'data-page' => body_data_page}
= render "layouts/head_panel", title: "Search"
= render "layouts/flash"

View file

@ -1,7 +1,7 @@
!!! 5
%html{ lang: "en"}
= render "layouts/head", title: "Snipepts"
%body{class: "#{app_theme} application"}
%body{class: "#{app_theme} application", :'data-page' => body_data_page}}
= render "layouts/head_panel", title: "Snippets"
= render "layouts/flash"
%nav.main-nav