about summary refs log tree commit diff stats
path: root/app/views/blogs
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-13 12:16:18 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-13 12:16:18 -0400
commit27482983496cd0b8b6fa7dc943a1b05959735835 (patch)
treebc63dd51607917101d11e3ab8547808173885023 /app/views/blogs
parent0333f3e258026696af265f777f862e612bab1bd7 (diff)
downloadthoughts-27482983496cd0b8b6fa7dc943a1b05959735835.tar.gz
thoughts-27482983496cd0b8b6fa7dc943a1b05959735835.tar.bz2
thoughts-27482983496cd0b8b6fa7dc943a1b05959735835.zip
Nice pagination!
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