about summary refs log tree commit diff stats
path: root/app/views/layouts/quotes.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/quotes.html.haml')
-rw-r--r--app/views/layouts/quotes.html.haml41
1 files changed, 41 insertions, 0 deletions
diff --git a/app/views/layouts/quotes.html.haml b/app/views/layouts/quotes.html.haml new file mode 100644 index 0000000..040fdfe --- /dev/null +++ b/app/views/layouts/quotes.html.haml
@@ -0,0 +1,41 @@
1!!! 5
2%html
3 %head
4 %title The Four Island Quotes DB
5 %meta{ :charset => "utf-8" }
6 = stylesheet_link_tag "quotes"
7 = javascript_include_tag "application"
8 = csrf_meta_tag
9 = auto_discovery_link_tag :atom, latest_quotes_url(:atom)
10 = display_meta_tags og: { site_name: "Four Island" }
11 %link{rel: "alternate", type: "application/atom+xml", href: latest_quotes_url(:atom)}
12 %meta{name: "viewport", content: "width=device-width, initial-scale=1.0"}
13 %body
14 #wrap
15 %header#banner
16 %h1#banner-title= link_to "The Four Island Quotes DB", quotes_url
17 #banner-abbr FIQDB
18 .cleardiv
19 %nav#top-bar
20 %ul
21 %li= link_to_unless_current "Home", quotes_url
22 %li= link_to_unless_current "Latest", latest_quotes_url
23 %li= link_to_unless_current "Top", top_quotes_url
24 %li{"data-turbolinks" => "false"}= link_to "Random", random_quotes_url
25 - if user_signed_in?
26 %li= link_to_unless_current "Submit", new_quote_url
27 %li= link_to_unless_current "Tags", tags_quotes_url
28 %li= link_to_unless_current "Search", search_form_quotes_url
29 %li{"data-turbolinks" => "false"}= link_to_unless_current "Stats", stats_quotes_url
30 %li= link_to_unless_current "Feed", latest_quotes_url(:atom)
31 - if user_signed_in?
32 %li= link_to_unless_current "Admin", admin_url
33 .cleardiv
34 #page-body
35 - if flash[:notice]
36 #flash= flash[:notice]
37 = yield
38 %footer
39 #footer-left= raw "The Four Island Quotes DB is a #{link_to "Four Island", root_url} project and is © hatkirby 2008-#{Time.now.year}"
40 #footer-right #{Quote.published.count} approved quotes; #{Quote.pending.count} pending quotes
41 .cleardiv