Fix items being inserted after "Load More" button

This commit is contained in:
Georg Gadinger 2020-05-09 04:51:14 +02:00
parent 7a7174c163
commit 0d28152f3e
4 changed files with 18 additions and 18 deletions

View File

@ -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"

View File

@ -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'

View File

@ -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"

View File

@ -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"