-
Notifications
You must be signed in to change notification settings - Fork 23
/
admin.html.haml
42 lines (42 loc) · 1.94 KB
/
admin.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
33
34
35
36
37
38
39
40
41
42
!!!
%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
- if photographer_signed_in?
%li{ :class => controller.controller_name == 'events' ? 'active' : '' }= link_to 'Dashboard', admin_path
%li{ :class => controller.controller_name == 'private_galleries' ? 'active' : '' }= link_to 'Private Galleries', admin_private_galleries_path
%li{ :class => controller.controller_name == 'galleries' ? 'active' : '' }= link_to 'Galleries', admin_galleries_path
%li{ :class => controller.controller_name == 'pages' ? 'active' : '' }= link_to 'Pages', admin_pages_path
%li{ :class => controller.controller_name == 'posts' ? 'active' : '' }= link_to 'Posts', admin_posts_path
%li{ :class => controller.controller_name == 'photographers' ? 'active' : '' }= link_to 'Settings', edit_admin_photographer_path
%li.divider-vertical
%li= link_to 'Logout', destroy_photographer_session_path, :method => :delete
.pull-right= link_to('GrokPhoto Administration', admin_path, :class => 'brand')
.container
- if notice
.alert.alert-block{ :'data-dismiss' => 'alert' }
%a.close ×
%p= notice
.page-header
%h1= yield(:title).presence || 'Home'
.row
- if content_for?(:sidebar)
.span3
.well
%h2 Instructions
= yield(:sidebar)
%p
%p
.span9= yield
- else
.span12= yield
#footer.container
© #{link_to('GrokPhoto', 'http://grokphoto.org', :target => '_blank')}, 2011. All Rights Reserved.