Fix items being inserted after "Load More" button
This commit is contained in:
parent
7a7174c163
commit
0d28152f3e
|
@ -2,11 +2,11 @@
|
|||
- @timeline.each do |answer|
|
||||
= render 'answerbox', a: answer
|
||||
|
||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
|
||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @timeline_last_id }}
|
||||
= t 'views.actions.load'
|
||||
- if @more_data_available
|
||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @timeline_last_id }}
|
||||
= t 'views.actions.load'
|
||||
|
||||
- provide(:title, group_title(@group))
|
||||
- parent_layout "feed"
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
- if @inbox.empty?
|
||||
= t 'views.inbox.empty'
|
||||
|
||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @inbox_last_id
|
||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @inbox_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @inbox_last_id }}
|
||||
= t 'views.actions.load'
|
||||
- if @more_data_available
|
||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @inbox_last_id }}
|
||||
= t 'views.actions.load'
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
- @timeline.each do |answer|
|
||||
= render 'answerbox', a: answer
|
||||
|
||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
|
||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @timeline_last_id }}
|
||||
Load more
|
||||
- if @more_data_available
|
||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @timeline_last_id }}
|
||||
Load more
|
||||
|
||||
- provide(:title, generate_title("Public Timeline"))
|
||||
- parent_layout "feed"
|
||||
- parent_layout "feed"
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
- @timeline.each do |answer|
|
||||
= render 'answerbox', a: answer
|
||||
|
||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
|
||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @timeline_last_id }}
|
||||
Load more
|
||||
- if @more_data_available
|
||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @timeline_last_id }}
|
||||
Load more
|
||||
|
||||
- provide(:title, "#{APP_CONFIG['site_name']}")
|
||||
- parent_layout "feed"
|
||||
- parent_layout "feed"
|
||||
|
|
Loading…
Reference in New Issue