From 96813a5e508a54257ef03be613a704f1f71af53d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 21 Oct 2023 00:25:50 -0400 Subject: Added quotes database --- app/views/layouts/quotes.html.haml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/views/layouts/quotes.html.haml (limited to 'app/views/layouts/quotes.html.haml') diff --git a/app/views/layouts/quotes.html.haml b/app/views/layouts/quotes.html.haml new file mode 100644 index 0000000..6d89d91 --- /dev/null +++ b/app/views/layouts/quotes.html.haml @@ -0,0 +1,31 @@ +!!! 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_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 -- cgit 1.4.1