manveru / sociar

Open Source Social Networking Platform

kuccello (author)
Thu Mar 12 19:41:20 -0700 2009
manveru (committer)
Thu Mar 12 20:08:11 -0700 2009
commit  574be38ecc7fc61aeed189ef167a5f30d487d599
tree    4eb656c651d4359e87fb6c6d37cab8e1844a6ad6
parent  db12e44d25c2b7f25d3c34896d7d498a3938c483
sociar / view / layout.haml
100644 56 lines (48 sloc) 1.933 kb
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
!!! XML
!!!
 
%html
  %head
    %meta{'http-equiv' => "Content-Type", :content => 'text/html; charset=utf-8'}
    %meta{:name => :description, :content => config.description}
    %meta{:name => :keywords, :content => config.keywords.join(',')}
    %title= @title ||= config.title
    %link{:rel => 'shortcut icon', :href => '/favicon.ico', :type => 'image/x-icon'}
    = css_for %w[ reset text clearfix common layout lightbox jqac ]
    = js_for %w[ jquery lightbox jqac common ]
  %body
    #layout
      #header.clearfix
        #logo
          %a{:href => '/'}
            %img{:src => '/media/sociar.png', :alt => config.title}
        #menu
          .top
            %a{:href => R(IndexController, :about)} About
            - if logged_in?
              - if user.is_admin
                / %a{:href => R(AdminController)} Admin
                %a{:href => R(IndexController)} Newest Stuff
                %a{:href => R(AccountController, :logout)} Logout
            - else
              %a{:href => R(AccountController, :login)} Login
              %a{:href => R(AccountController, :register)} Register
 
 
        #searchbox
          %form{:method => 'GET', :action => '/profile/search', :id => 'search-box', :name => :search}
            %formfield
              %label{:for => :g} Search
              %input{:type => :text, :name => :g, :id => :g}
 
 
      #flashbox= flashbox
 
      #content.clearfix= @content
 
      #footer.clearfix
        .info
          = config.description
          by
          %a{:href => "/profile/#{config.site.admin}"}= config.site.admin
          \.
          %br/
          %a{:href => 'http://github.com/manveru/sociar'} Download Free
          %a{:href => '#'} Demo
          %a{:href => '#'} Contact Us
          %a{:href => '/blog/manveru'} Blog
        %a{:href => 'http://ramaze.net', :target => '_blank'}
          %img{:src => '/media/ramaze_35x35.png', :alt => 'Powered by Ramaze'}