about summary refs log tree commit diff stats
path: root/app
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-07-03 17:08:16 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-07-03 17:08:16 -0400
commit77c3c18fe2a28f5ed94cd815d07f04de39b26e60 (patch)
tree13e4f1736d93c7e7fe3b361790aeb2e482dc0bce /app
parenta83cd5b38e2a753e5bbefadd818f01a9ee5f2bab (diff)
downloadthoughts-77c3c18fe2a28f5ed94cd815d07f04de39b26e60.tar.gz
thoughts-77c3c18fe2a28f5ed94cd815d07f04de39b26e60.tar.bz2
thoughts-77c3c18fe2a28f5ed94cd815d07f04de39b26e60.zip
Added short footer to blog posts
It just contains the datetime the post was written. Still not a real footer.

refs #11
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/main/entries.scss15
-rw-r--r--app/views/blogs/show.html.haml4
2 files changed, 19 insertions, 0 deletions
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 @@
28 } 28 }
29} 29}
30 30
31#blog-footer {
32 background-color: #f8f8f8;
33 border-width: 1px 0 1px 0;
34 border-style: solid;
35 border-color: #DDD;
36 color: #777;
37 padding: .75em 1em;
38 font-size: 0.9em;
39 margin-bottom: 1em;
40
41 time {
42 border-bottom: 1px dotted #777;
43 }
44}
45
31#stream-post { 46#stream-post {
32 h2 { 47 h2 {
33 background-color: #98FB98; 48 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 @@
1.breadcrumb= link_to "← Back to home page", root_path 1.breadcrumb= link_to "← Back to home page", root_path
2= render @blog 2= render @blog
3%footer#blog-footer
4 This entry was posted on
5 = succeed "." do
6 %time= @blog.created_at.strftime("%B #{@blog.created_at.day.ordinalize} %Y at %-I:%M:%S%P")