Fix design of user and questionboxes
This commit is contained in:
parent
b443aff964
commit
12955cc663
|
@ -1,11 +1,11 @@
|
||||||
.card.questionbox{data: { id: u.id }}
|
.card{data: { id: u.id }}
|
||||||
.card-body
|
.card-body
|
||||||
.media
|
.media
|
||||||
.pull-left
|
.pull-left
|
||||||
%a{href: show_user_profile_path(u.screen_name)}
|
%a{href: show_user_profile_path(u.screen_name)}
|
||||||
%img.answerbox--img{src: u.profile_picture.url(:medium)}
|
%img.avatar-md.mr-2{src: u.profile_picture.url(:medium)}
|
||||||
.media-body
|
.media-body
|
||||||
%h6.media-heading
|
%h6.media-heading.answerbox__question-user
|
||||||
- if u.display_name.blank?
|
- if u.display_name.blank?
|
||||||
%a{href: show_user_profile_path(u.screen_name)}
|
%a{href: show_user_profile_path(u.screen_name)}
|
||||||
%span= "@#{u.screen_name}"
|
%span= "@#{u.screen_name}"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
- type ||= nil
|
- type ||= nil
|
||||||
.card.questionbox{data: { id: q.id }}
|
.card{data: { id: q.id }}
|
||||||
.card-body
|
.card-body
|
||||||
.media
|
.media
|
||||||
- if type == "discover"
|
- if type == "discover"
|
||||||
.pull-left
|
.pull-left
|
||||||
%a{href: user_screen_name(q.user, link_only: true)}
|
%a{href: user_screen_name(q.user, link_only: true)}
|
||||||
%img.answerbox--img{src: q.user&.profile_picture&.url(:medium)}
|
%img.avatar-md.mr-2{src: q.user&.profile_picture&.url(:medium)}
|
||||||
.media-body
|
.media-body
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
.pull-right
|
.pull-right
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: q.id }}
|
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: q.id }}
|
||||||
%i.fa.fa-exclamation-triangle
|
%i.fa.fa-exclamation-triangle
|
||||||
= t 'views.actions.report'
|
= t 'views.actions.report'
|
||||||
%h6.media-heading.text-muted.answerbox--question-user
|
%h6.media-heading.text-muted.answerbox__question-user
|
||||||
= raw t('views.answerbox.asked', user: user_screen_name(q.user), time: time_tooltip(q))
|
= raw t('views.answerbox.asked', user: user_screen_name(q.user), time: time_tooltip(q))
|
||||||
- if q.answer_count > 1
|
- if q.answer_count > 1
|
||||||
·
|
·
|
||||||
|
|
Loading…
Reference in New Issue