mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 13:19:08 +01:00
Fix some layout issues on question pages
This commit is contained in:
parent
1dfe0418c9
commit
adf5968ad0
2 changed files with 5 additions and 6 deletions
|
@ -1,11 +1,11 @@
|
||||||
.card.question--fixed{class: if hidden then 'question--hidden' end, tabindex: if hidden then '-1' end, aria: { hidden: if hidden then :true end }}
|
.card.question--fixed{class: if hidden then 'question--hidden' end, tabindex: if hidden then '-1' end, aria: { hidden: if hidden then :true end }}
|
||||||
.container
|
.container
|
||||||
.card-body
|
.card-body
|
||||||
.media.question-media
|
.media
|
||||||
- unless question.author_is_anonymous
|
- unless question.author_is_anonymous
|
||||||
%a.pull-left{href: unless hidden then show_user_profile_path(question.user.screen_name) end}
|
%a.pull-left{href: unless hidden then show_user_profile_path(question.user.screen_name) end}
|
||||||
%img.avatar-sm{src: question.user.profile_picture.url(:medium)}
|
%img.answerbox__question-user-avatar.avatar-md{src: question.user.profile_picture.url(:medium)}
|
||||||
.media-body.question-body
|
.media-body
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
.pull-right
|
.pull-right
|
||||||
.btn-group
|
.btn-group
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: question.id }}
|
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: question.id }}
|
||||||
%i.fa.fa-exclamation-triangle
|
%i.fa.fa-exclamation-triangle
|
||||||
= t 'views.actions.report'
|
= t 'views.actions.report'
|
||||||
%h6.text-muted.media-heading.answerbox--question-user
|
%h6.text-muted.media-heading.answerbox__question-user
|
||||||
- if hidden
|
- if hidden
|
||||||
= user_screen_name question.user, anonymous: question.author_is_anonymous, url: false
|
= user_screen_name question.user, anonymous: question.author_is_anonymous, url: false
|
||||||
- else
|
- else
|
||||||
|
|
|
@ -14,8 +14,7 @@
|
||||||
|
|
||||||
- if user_signed_in? && !current_user.answered?(@question) && current_user != @question.user && @question.user&.privacy_allow_stranger_answers
|
- if user_signed_in? && !current_user.answered?(@question) && current_user != @question.user && @question.user&.privacy_allow_stranger_answers
|
||||||
.card#q-answer-box
|
.card#q-answer-box
|
||||||
.card-header
|
.card-header= t('views.question.title')
|
||||||
%h3.card-title= t('views.question.title')
|
|
||||||
.card-body
|
.card-body
|
||||||
%textarea#q-answer.form-control{placeholder: t('views.placeholder.inbox'), data: { id: @question.id }}
|
%textarea#q-answer.form-control{placeholder: t('views.placeholder.inbox'), data: { id: @question.id }}
|
||||||
%br/
|
%br/
|
||||||
|
|
Loading…
Reference in a new issue