diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-13 12:16:18 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-13 12:16:18 -0400 |
commit | 27482983496cd0b8b6fa7dc943a1b05959735835 (patch) | |
tree | bc63dd51607917101d11e3ab8547808173885023 /app/views/blogs/_list.html.haml | |
parent | 0333f3e258026696af265f777f862e612bab1bd7 (diff) | |
download | thoughts-27482983496cd0b8b6fa7dc943a1b05959735835.tar.gz thoughts-27482983496cd0b8b6fa7dc943a1b05959735835.tar.bz2 thoughts-27482983496cd0b8b6fa7dc943a1b05959735835.zip |
Nice pagination!
Diffstat (limited to 'app/views/blogs/_list.html.haml')
-rw-r--r-- | app/views/blogs/_list.html.haml | 5 |
1 files changed, 5 insertions, 0 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 | ||