about summary refs log tree commit diff stats
path: root/app/views/blogs
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/blogs')
-rw-r--r--app/views/blogs/_list.html.haml5
-rw-r--r--app/views/blogs/summary.html.haml4
2 files changed, 6 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