2015-07-24 10:12:14 -07:00
|
|
|
- header_class = if user.profile_header.exists? then "userbox--header-container" else "userbox--no-header" end
|
2020-04-19 14:31:24 -07:00
|
|
|
.card
|
2015-07-24 10:12:14 -07:00
|
|
|
%div{class: header_class}
|
|
|
|
%img.userbox--header{src: user.profile_header.url(:mobile)}
|
2020-04-19 14:09:41 -07:00
|
|
|
.card-body
|
2015-07-24 08:04:46 -07:00
|
|
|
%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
|
2015-07-23 10:38:42 -07:00
|
|
|
.row
|
|
|
|
.col-md-12.col-sm-12.col-xs-12
|
|
|
|
- unless count.nil?
|
2015-07-24 08:04:46 -07:00
|
|
|
%h4.entry-text.text-center#asked-count
|
2015-07-23 10:38:42 -07:00
|
|
|
= count
|
2015-07-23 10:53:51 -07:00
|
|
|
= 'Report'.pluralize(count)
|
2015-07-23 10:38:42 -07:00
|
|
|
%br
|
|
|
|
%br
|
|
|
|
- else
|
|
|
|
%br
|
|
|
|
= render 'actions', user: user
|