Retrospring/app/views/shared/_userbox.html.haml

24 lines
811 B
Plaintext
Raw Normal View History

2014-12-08 08:03:06 -08:00
/ TODO: pixeldesu pls
.panel.panel-default
.panel-body
.media
.pull-left
%img.img-rounded.img-profile{src: gravatar_url(user)}
.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-08 08:10:09 -08:00
%h2.user-displayname
%a{href: show_user_profile_path(user.screen_name)}
= user.display_name
2014-12-08 08:03:06 -08:00
%h4.text-muted.user-username= user.screen_name
.row
.col-md-6.col-sm-6.col-xs-6
%h4.entry-text#asked-count= user.asked_count
%h6.entry-subtext Questions
.col-md-6.col-sm-6.col-xs-6
%h4.entry-text#answered-count= user.answered_count
%h6.entry-subtext Answers
2014-12-08 08:10:09 -08:00
= render 'user/actions', user: user