mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Remove turbo-frame tags in user views
This commit is contained in:
parent
c60acebf21
commit
5d88dfcb9c
3 changed files with 27 additions and 30 deletions
|
@ -1,9 +1,8 @@
|
||||||
= turbo_frame_tag "user_questions" do
|
#questions
|
||||||
#questions
|
|
||||||
- @questions.each do |q|
|
- @questions.each do |q|
|
||||||
= render 'shared/question', q: q, type: nil
|
= render 'shared/question', q: q, type: nil
|
||||||
|
|
||||||
- if @more_data_available
|
- if @more_data_available
|
||||||
.d-flex.justify-content-center.justify-content-sm-start#paginator
|
.d-flex.justify-content-center.justify-content-sm-start#paginator
|
||||||
= button_to show_user_questions_path(@user, last_id: @questions_last_id), class: "btn btn-light" do
|
= button_to show_user_questions_path(@user, last_id: @questions_last_id), class: "btn btn-light" do
|
||||||
= t("voc.load")
|
= t("voc.load")
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
= turbo_frame_tag "user_answers" do
|
- unless @user.banned?
|
||||||
- unless @user.banned?
|
|
||||||
#answers
|
#answers
|
||||||
- @answers.each do |a|
|
- @answers.each do |a|
|
||||||
= render 'answerbox', a: a
|
= render 'answerbox', a: a
|
||||||
|
|
||||||
- if @more_data_available
|
- if @more_data_available
|
||||||
.d-flex.justify-content-center.justify-content-sm-start#paginator
|
.d-flex.justify-content-center.justify-content-sm-start#paginator
|
||||||
= button_to user_path(@user, last_id: @answers_last_id), class: "btn btn-light" do
|
= button_to user_path(@user, last_id: @answers_last_id), class: "btn btn-light" do
|
||||||
= t("voc.load")
|
= t("voc.load")
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
= turbo_frame_tag "user_#{@type}" do
|
.row.row-cols-1.row-cols-sm-2.row-cols-md-3#users
|
||||||
.row.row-cols-1.row-cols-sm-2.row-cols-md-3#users
|
|
||||||
- @users.each do |user|
|
- @users.each do |user|
|
||||||
.col.pb-3
|
.col.pb-3
|
||||||
= render 'shared/userbox', user: user, type: @type
|
= render 'shared/userbox', user: user, type: @type
|
||||||
|
|
||||||
- if @more_data_available
|
- if @more_data_available
|
||||||
.d-flex.justify-content-center.justify-content-sm-start#paginator
|
.d-flex.justify-content-center.justify-content-sm-start#paginator
|
||||||
- if @type === :follower
|
- if @type === :follower
|
||||||
= button_to show_user_followers_path(@user, last_id: @relationships_last_id), class: "btn btn-light" do
|
= button_to show_user_followers_path(@user, last_id: @relationships_last_id), class: "btn btn-light" do
|
||||||
|
|
Loading…
Reference in a new issue