/
application.html.haml
32 lines (32 loc) · 1.25 KB
/
application.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
!!!
%html{ 'class' => 'no-js', :lang => 'en' }
%head
%title= "#{yield(:meta_title).presence || yield(:page_title).presence || 'Home'} | #{photographer.name} Administration"
= stylesheet_link_tag 'application'
= javascript_include_tag 'application'
= csrf_meta_tags
%body{ :class => "#{yield(:body_class).presence}" }
.navbar.navbar-fixed-top
.navbar-inner
.container
%ul.nav
%li{ :class => controller.controller_name == 'home' ? 'active' : '' }= link_to 'Home', root_path
%li= link_to('Newborns', '#')
%li= link_to('Kids', '#')
%li= link_to('Family', '#')
%li.divider-vertical
%li{ :class => controller.controller_name == 'contact_requests' ? 'active' : '' }= link_to('Contact', new_contact_request_path)
- if photographer.blog_url
%li= link_to('Blog', photographer.blog_url)
.pull-right= link_to(photographer.name, root_path, :class => 'brand')
.container
- if notice
.alert.alert-block{ :'data-dismiss' => 'alert' }
%a.close ×
%p= notice
.page-header
%h1= yield(:title).presence || 'Home'
.row
.span12= yield
#footer.container
= "© 2011, #{photographer.name}, All Rights Reserved".html_safe