Adjust what content gets hidden on banned user profiles

This commit is contained in:
Andreas Nedbal 2024-02-28 23:53:22 +01:00 committed by Andreas Nedbal
parent c864c14355
commit 1914c56b05
3 changed files with 16 additions and 15 deletions

View File

@ -8,6 +8,7 @@
.d-none.d-sm-block= render 'shared/links'
.col-lg-9.col-md-8.col-xs-12.col-sm-8
= render 'questionbox', user: @user
- unless @user.banned?
= render 'tabs/profile', user: @user
= yield
- if user_signed_in?

View File

@ -37,4 +37,5 @@
.profile__location
%i.fa.fa-fw.fa-location-arrow
= user.profile.location
- unless user.banned?
= render "user/actions", user: user, type: :follower

View File

@ -1,4 +1,3 @@
- unless @user.banned?
%div{ data: { controller: "navigation" } }
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } }