diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/blogs/_list.html.haml | 5 | ||||
-rw-r--r-- | app/views/blogs/summary.html.haml | 4 | ||||
-rw-r--r-- | app/views/tags/show.html.haml | 6 |
3 files changed, 12 insertions, 3 deletions
diff --git a/app/views/blogs/_list.html.haml b/app/views/blogs/_list.html.haml new file mode 100644 index 0000000..3618bdb --- /dev/null +++ b/app/views/blogs/_list.html.haml | |||
@@ -0,0 +1,5 @@ | |||
1 | - if not @main_page | ||
2 | = will_paginate @blogs | ||
3 | - @blogs.each do |blog| | ||
4 | = render blog, short: true | ||
5 | = will_paginate @blogs | ||
diff --git a/app/views/blogs/summary.html.haml b/app/views/blogs/summary.html.haml index e9639ca..79811b1 100644 --- a/app/views/blogs/summary.html.haml +++ b/app/views/blogs/summary.html.haml | |||
@@ -1,3 +1 @@ | |||
1 | - @blogs.each do |blog| | = render "list" | |
2 | = render blog, short: true | ||
3 | = will_paginate @blogs | ||
diff --git a/app/views/tags/show.html.haml b/app/views/tags/show.html.haml new file mode 100644 index 0000000..1d34b37 --- /dev/null +++ b/app/views/tags/show.html.haml | |||
@@ -0,0 +1,6 @@ | |||
1 | - title "Tag #{@tag_name}" | ||
2 | %h2.centered | ||
3 | Blog posts tagged | ||
4 | = surround "\"" do | ||
5 | = @tag_name | ||
6 | = render "blogs/list" | ||