diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-05-12 14:07:23 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-05-12 14:07:23 -0400 |
commit | 4016070f2caf30f576d0b0df8a65a7b4b468e951 (patch) | |
tree | f59af69e7aa118d5e5d87ee5b45960e6a19727e2 /app/views | |
parent | 1d78ba374d5fa61ddba63db7a1c4c159e3e6a7af (diff) | |
download | thoughts-4016070f2caf30f576d0b0df8a65a7b4b468e951.tar.gz thoughts-4016070f2caf30f576d0b0df8a65a7b4b468e951.tar.bz2 thoughts-4016070f2caf30f576d0b0df8a65a7b4b468e951.zip |
Paginate stream updates
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/streams/_stream.html.haml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/streams/_stream.html.haml b/app/views/streams/_stream.html.haml index 74e8a19..4a6b1e9 100644 --- a/app/views/streams/_stream.html.haml +++ b/app/views/streams/_stream.html.haml | |||
@@ -2,5 +2,9 @@ | |||
2 | %h2#stream-title= stream.title | 2 | %h2#stream-title= stream.title |
3 | - unless stream.body.blank? | 3 | - unless stream.body.blank? |
4 | %header#stream-intro.entry-content= markdown(stream.body) | 4 | %header#stream-intro.entry-content= markdown(stream.body) |
5 | - unless stream.updates.empty? | 5 | - if stream.updates.size > 10 |
6 | = render stream.updates | 6 | = will_paginate @updates |
7 | - unless @updates.empty? | ||
8 | = render @updates | ||
9 | - if stream.updates.size > 10 | ||
10 | = will_paginate @updates | ||