2020-05-10 13:37:08 +02:00
|
|
|
.card{ data: { id: u.id } }
|
2020-04-19 23:09:41 +02:00
|
|
|
.card-body
|
2015-05-13 23:55:10 +02:00
|
|
|
.media
|
|
|
|
.pull-left
|
2020-05-10 13:37:08 +02:00
|
|
|
%a{ href: show_user_profile_path(u.screen_name) }
|
|
|
|
%img.avatar-md.mr-2{ src: u.profile_picture.url(:medium) }
|
2015-05-13 23:55:10 +02:00
|
|
|
.media-body
|
2020-05-07 02:12:44 +02:00
|
|
|
%h6.media-heading.answerbox__question-user
|
2021-12-23 22:01:56 +01:00
|
|
|
- if u.profile.display_name.blank?
|
2020-05-10 13:37:08 +02:00
|
|
|
%a{ href: show_user_profile_path(u.screen_name) }
|
|
|
|
= u.screen_name
|
2015-05-13 23:55:10 +02:00
|
|
|
- else
|
2020-05-10 13:37:08 +02:00
|
|
|
%a{ href: show_user_profile_path(u.screen_name) }
|
2021-12-23 22:01:56 +01:00
|
|
|
= u.profile.display_name
|
2020-05-10 13:37:08 +02:00
|
|
|
%span.text-muted= u.screen_name
|
2020-05-02 20:35:48 +02:00
|
|
|
%p.answerbox__question-text
|
2020-10-19 15:55:00 +02:00
|
|
|
- case type
|
|
|
|
- when 'new'
|
2015-05-26 21:15:18 +02:00
|
|
|
= t('views.discover.userbox.new', time: time_ago_in_words(u.created_at))
|
2020-10-19 15:55:00 +02:00
|
|
|
- when 'most'
|
2015-05-26 21:15:18 +02:00
|
|
|
= t('views.discover.userbox.answers', questions: pluralize(a, t('views.general.question')))
|
2015-05-13 23:55:10 +02:00
|
|
|
- else
|
2015-06-17 12:07:51 +02:00
|
|
|
= t('views.discover.userbox.questions', questions: pluralize(q, t('views.general.question')))
|