about summary refs log tree commit diff stats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/blogs/_blog.html.haml7
-rw-r--r--app/views/blogs/index.html.haml2
-rw-r--r--app/views/blogs/show.html.haml2
3 files changed, 8 insertions, 3 deletions
diff --git a/app/views/blogs/_blog.html.haml b/app/views/blogs/_blog.html.haml index 317ef1f..389f961 100644 --- a/app/views/blogs/_blog.html.haml +++ b/app/views/blogs/_blog.html.haml
@@ -6,4 +6,9 @@
6 .blog-title 6 .blog-title
7 %h2= blog.title 7 %h2= blog.title
8 .post-author Hatkirby 8 .post-author Hatkirby
9 %blockquote#blog-content.entry-content.bubble.rounded.bottom= blog.body.html_safe 9 %blockquote#blog-content.entry-content.bubble.rounded.bottom
10 - if short and blog.has_read_more
11 = markdown(blog.short_body)
12 = link_to "Read more...", blog
13 - else
14 = markdown(blog.body)
diff --git a/app/views/blogs/index.html.haml b/app/views/blogs/index.html.haml index a1ad64c..e9639ca 100644 --- a/app/views/blogs/index.html.haml +++ b/app/views/blogs/index.html.haml
@@ -1,3 +1,3 @@
1- @blogs.each do |blog| 1- @blogs.each do |blog|
2 = render blog 2 = render blog, short: true
3= will_paginate @blogs 3= will_paginate @blogs
diff --git a/app/views/blogs/show.html.haml b/app/views/blogs/show.html.haml index f915e64..9bff12b 100644 --- a/app/views/blogs/show.html.haml +++ b/app/views/blogs/show.html.haml
@@ -1,6 +1,6 @@
1- title @blog.title 1- title @blog.title
2.breadcrumb= link_to "← Back to home page", root_path 2.breadcrumb= link_to "← Back to home page", root_path
3= render @blog 3= render @blog, short: false
4%footer#blog-footer 4%footer#blog-footer
5 This entry was posted on 5 This entry was posted on
6 = succeed "." do 6 = succeed "." do