about summary refs log tree commit diff stats
path: root/app/views/layouts/quotes.html.haml
blob: 55552483041fefd26f97d0a7d9eb6753ae007e98 (plain) (blame)
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
!!! 5
%html
  %head
    %title The Four Island Quotes DB
    %meta{ :charset => "utf-8" }
    = stylesheet_link_tag "quotes"
    = javascript_include_tag "application"
    = csrf_meta_tag
    = auto_discovery_link_tag :atom, latest_quotes_url(:atom)
  %body
    #wrap
      %header#banner
        %h1#banner-title= link_to "The Four Island Quotes DB", root_path
        #banner-abbr FIQDB
        .cleardiv
      %nav#top-bar
        %ul
          %li= link_to_unless_current "Home", quotes_url
          %li= link_to_unless_current "Latest", latest_quotes_url
          %li= link_to_unless_current "Top", top_quotes_url
          %li= link_to "Random", random_quotes_url
          - if user_signed_in?
            %li= link_to_unless_current "Submit", new_quote_url
          %li= link_to_unless_current "Tags", tags_quotes_url
          %li= link_to_unless_current "Feed", latest_quotes_url(:atom)
        .cleardiv
      #page-body
        - if flash[:notice]
          #flash= flash[:notice]
        = yield
      %footer
        #footer-left= raw "The Four Island Quotes DB is a #{link_to "Four Island", root_url} project and is © hatkirby 2008-#{Time.now.year}"
        #footer-right #{Quote.published.count} approved quotes; #{Quote.pending.count} pending quotes
        .cleardiv