Retrospring/app/views/user/show_follow.html.haml

20 lines
798 B
Plaintext

- if @users.empty?
= render "shared/empty", icon: "fa-regular fa-user", translation_key: ".user.#{type}"
.row.row-cols-1.row-cols-sm-2.row-cols-md-3#users
- @users.each do |user|
.col.pb-3
= render "shared/userbox", user:, type:, own_followings:, own_blocks:, own_mutes:
- if @more_data_available
.d-flex.justify-content-center.justify-content-sm-start#paginator
= button_to t("voc.load"), type == :follower ? show_user_followers_path(@user) : show_user_followings_path(@user),
class: "btn btn-light",
method: :get,
params: { last_id: @relationships_last_id },
data: { controller: :hotkey, hotkey: "." },
form: { data: { turbo_stream: true } }
- provide(:title, t(".title.#{type}", user: @user.profile.safe_name))
- parent_layout "user/profile"