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

24 lines
787 B
Plaintext

.panel.panel-default.questionbox{data: { id: u.id }}
.panel-body
.media
.pull-left
%a{href: show_user_profile_path(u.screen_name)}
%img.answerbox--img{src: u.profile_picture.url(:medium)}
.media-body
%h6.media-heading
- if u.display_name.blank?
%a{href: show_user_profile_path(u.screen_name)}
%span= "@#{u.screen_name}"
- else
%a{href: show_user_profile_path(u.screen_name)}
%span= u.display_name
%span.text-muted= "@#{u.screen_name}"
%p.answerbox--question-text
- if type == "new"
registered
= time_ago_in_words(u.created_at)
ago
- else
asked
= pluralize(q, "question")