Adjust what content gets hidden on banned user profiles
This commit is contained in:
parent
c864c14355
commit
1914c56b05
|
@ -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?
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- unless @user.banned?
|
||||
%div{ data: { controller: "navigation" } }
|
||||
%div{ data: { controller: "navigation" } }
|
||||
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
|
||||
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } }
|
||||
#pinned-answers
|
||||
|
|
Loading…
Reference in New Issue