Make the "Load more" button center-aligned and give it "button" styling
Fixes #107
This commit is contained in:
parent
f9a79acc8a
commit
ee947f2428
|
@ -8,5 +8,7 @@
|
|||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @inbox_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @inbox_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
||||
.d-flex.justify-content-center
|
||||
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @inbox_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
|
||||
= t 'views.actions.load'
|
||||
.d-flex.justify-content-center
|
||||
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
||||
- provide(:title, list_title(@list))
|
||||
- parent_layout 'feed'
|
||||
|
|
|
@ -19,5 +19,6 @@
|
|||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @notifications_last_id, permitted_params: %i[type]
|
||||
|
||||
- if @more_data_available
|
||||
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @notifications_last_id } }
|
||||
Load more
|
||||
.d-flex.justify-content-center
|
||||
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @notifications_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
|
||||
Load more
|
||||
.d-flex.justify-content-center
|
||||
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
||||
- provide(:title, generate_title('Public Timeline'))
|
||||
- parent_layout 'feed'
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @answers_last_id } }
|
||||
Load more
|
||||
.d-flex.justify-content-center
|
||||
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @answers_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
||||
- if user_signed_in? && !current_user.answered?(@question) && current_user != @question.user && @question.user&.privacy_allow_stranger_answers
|
||||
.card#q-answer-box
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
|
||||
Load more
|
||||
.d-flex.justify-content-center
|
||||
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
||||
- provide(:title, APP_CONFIG['site_name'])
|
||||
- parent_layout 'feed'
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @questions_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @questions_last_id } }
|
||||
= t 'views.actions.load'
|
||||
.d-flex.justify-content-center
|
||||
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @questions_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
||||
- provide(:title, questions_title(@user))
|
||||
- parent_layout 'user/profile'
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @answers_last_id } }
|
||||
= t 'views.actions.load'
|
||||
.d-flex.justify-content-center
|
||||
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @answers_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
||||
- provide(:title, user_title(@user))
|
||||
- parent_layout 'user/profile'
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @users_last_id
|
||||
|
||||
- if @more_data_available
|
||||
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @users_last_id } }
|
||||
= t 'views.actions.load'
|
||||
.d-flex.justify-content-center
|
||||
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @users_last_id } }
|
||||
= t 'views.actions.load'
|
||||
|
||||
- provide(:title, user_title(@user, 'friends and followers'))
|
||||
- parent_layout 'user/profile'
|
||||
|
|
Loading…
Reference in New Issue