mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:39:52 +01:00
Fix moderation userbox layout
This commit is contained in:
parent
d82b7006e8
commit
ba2e82d7ec
2 changed files with 9 additions and 10 deletions
|
@ -1,12 +1,11 @@
|
|||
- header_class = if user.profile_header.exists? then "userbox--header-container" else "userbox--no-header" end
|
||||
.card
|
||||
%div{class: header_class}
|
||||
%img.userbox--header{src: user.profile_header.url(:mobile)}
|
||||
.card.h-100.userbox
|
||||
%img.userbox__header{src: user.profile_header.url(:mobile)}
|
||||
.card-body
|
||||
%img.userbox--avatar{src: user.profile_picture.url(:small)}
|
||||
%p.userbox--username
|
||||
%a.profile--displayname{href: show_user_profile_path(user.screen_name)}
|
||||
= user.screen_name
|
||||
%img.userbox__avatar{src: user.profile_picture.url(:small)}
|
||||
%a.profile__name{href: show_user_profile_path(user.screen_name)}
|
||||
- unless user.display_name.blank?
|
||||
.profile__display-name
|
||||
= user.display_name
|
||||
.row
|
||||
.col-md-12.col-sm-12.col-xs-12
|
||||
- unless count.nil?
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
- else
|
||||
Users with the same IP
|
||||
#users
|
||||
.row
|
||||
.row.row-cols-1.row-cols-sm-2.row-cols-md-3
|
||||
- @users.each do |u, c|
|
||||
.col-md-4.col-sm-12col-xs-12
|
||||
.col
|
||||
= render 'moderation/userbox', user: u, count: c
|
||||
|
|
Loading…
Reference in a new issue