2014-12-08 08:03:06 -08:00
|
|
|
/ TODO: pixeldesu pls
|
2014-12-08 10:48:12 -08:00
|
|
|
- type ||= @type || :nil
|
2014-12-08 08:03:06 -08:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
|
|
|
.media
|
|
|
|
.pull-left
|
2014-12-09 06:32:29 -08:00
|
|
|
%img.img-rounded.profile--img{src: gravatar_url(user)}
|
2014-12-08 08:03:06 -08:00
|
|
|
.media-body
|
|
|
|
- if user.display_name.blank?
|
2014-12-08 08:10:09 -08:00
|
|
|
%h2
|
|
|
|
%a{href: show_user_profile_path(user.screen_name)}
|
|
|
|
= user.screen_name
|
2014-12-08 08:03:06 -08:00
|
|
|
- else
|
2014-12-09 06:32:29 -08:00
|
|
|
%h2.profile--displayname
|
2014-12-08 08:10:09 -08:00
|
|
|
%a{href: show_user_profile_path(user.screen_name)}
|
|
|
|
= user.display_name
|
2014-12-09 06:32:29 -08:00
|
|
|
%h4.text-muted.profile--username= user.screen_name
|
2014-12-08 08:03:06 -08:00
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#asked-count= user.asked_count
|
2015-06-07 07:24:41 -07:00
|
|
|
%h6.entry-subtext= t('views.general.question').pluralize(user.asked_count)
|
2014-12-08 08:03:06 -08:00
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#answered-count= user.answered_count
|
2015-06-07 07:24:41 -07:00
|
|
|
%h6.entry-subtext= t('views.general.answer').pluralize(user.answered_count)
|
|
|
|
= render 'user/actions', user: user, type: type
|