From 77c3c18fe2a28f5ed94cd815d07f04de39b26e60 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 3 Jul 2018 17:08:16 -0400 Subject: Added short footer to blog posts It just contains the datetime the post was written. Still not a real footer. refs #11 --- app/assets/stylesheets/main/entries.scss | 15 +++++++++++++++ app/views/blogs/show.html.haml | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/app/assets/stylesheets/main/entries.scss b/app/assets/stylesheets/main/entries.scss index b2a07c5..1ac4931 100644 --- a/app/assets/stylesheets/main/entries.scss +++ b/app/assets/stylesheets/main/entries.scss @@ -28,6 +28,21 @@ } } +#blog-footer { + background-color: #f8f8f8; + border-width: 1px 0 1px 0; + border-style: solid; + border-color: #DDD; + color: #777; + padding: .75em 1em; + font-size: 0.9em; + margin-bottom: 1em; + + time { + border-bottom: 1px dotted #777; + } +} + #stream-post { h2 { background-color: #98FB98; diff --git a/app/views/blogs/show.html.haml b/app/views/blogs/show.html.haml index 51d4aa0..e22a199 100644 --- a/app/views/blogs/show.html.haml +++ b/app/views/blogs/show.html.haml @@ -1,2 +1,6 @@ .breadcrumb= link_to "← Back to home page", root_path = render @blog +%footer#blog-footer + This entry was posted on + = succeed "." do + %time= @blog.created_at.strftime("%B #{@blog.created_at.day.ordinalize} %Y at %-I:%M:%S%P") -- cgit 1.4.1