blob: 8bae13908cd81bc489e5453527e04fde36292f88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
- if params[:action] == "search"
= render partial: "shared/partial/search"
.tweets
= render partial: "shared/partial/tweet", collection: @tweets, as: :tweet
.loading
= image_tag "loading.gif", alt: "loading...", title: nil
.pagination
- if params[:page]
= link_to raw("Next ›"), params.merge(page: params[:page].to_i + 1), rel: :next
- elsif @tweets.last
= link_to raw("Next ›"), params.merge(max_id: @tweets.last.id - 1), rel: :next
|