2015-05-13 14:55:10 -07:00
|
|
|
.panel.panel-default.questionbox{data: { id: u.id }}
|
|
|
|
.panel-body
|
|
|
|
.media
|
|
|
|
.pull-left
|
2015-05-13 15:45:01 -07:00
|
|
|
%a{href: show_user_profile_path(u.screen_name)}
|
|
|
|
%img.answerbox--img{src: u.profile_picture.url(:medium)}
|
2015-05-13 14:55:10 -07:00
|
|
|
.media-body
|
|
|
|
%h6.media-heading
|
|
|
|
- if u.display_name.blank?
|
2015-05-13 15:45:01 -07:00
|
|
|
%a{href: show_user_profile_path(u.screen_name)}
|
|
|
|
%span= "@#{u.screen_name}"
|
2015-05-13 14:55:10 -07:00
|
|
|
- else
|
2015-05-13 15:45:01 -07:00
|
|
|
%a{href: show_user_profile_path(u.screen_name)}
|
|
|
|
%span= u.display_name
|
|
|
|
%span.text-muted= "@#{u.screen_name}"
|
2015-05-13 14:55:10 -07:00
|
|
|
%p.answerbox--question-text
|
|
|
|
- if type == "new"
|
2015-05-26 12:15:18 -07:00
|
|
|
= t('views.discover.userbox.new', time: time_ago_in_words(u.created_at))
|
2015-05-17 15:57:47 -07:00
|
|
|
- elsif type == "most"
|
2015-05-26 12:15:18 -07:00
|
|
|
= t('views.discover.userbox.answers', questions: pluralize(a, t('views.general.question')))
|
2015-05-13 14:55:10 -07:00
|
|
|
- else
|
2015-06-17 03:07:51 -07:00
|
|
|
= t('views.discover.userbox.questions', questions: pluralize(q, t('views.general.question')))
|