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
|
!!! 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)
= display_meta_tags og: { site_name: "Four Island" }
%link{rel: "alternate", type: "application/atom+xml", href: latest_quotes_url(:atom)}
%body
#wrap
%header#banner
%h1#banner-title= link_to "The Four Island Quotes DB", quotes_url
#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 "Stats", stats_quotes_url
%li= link_to_unless_current "Feed", latest_quotes_url(:atom)
- if user_signed_in?
%li= link_to_unless_current "Admin", admin_url
.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
|