center question on question page
This commit is contained in:
parent
76ac8e1a9d
commit
bd3564d6f3
|
@ -1,33 +1,34 @@
|
||||||
.panel.panel-question
|
.panel.panel-question
|
||||||
.panel-body
|
.container
|
||||||
.media.question-media
|
.panel-body
|
||||||
- unless @question.author_is_anonymous
|
.media.question-media
|
||||||
%a.pull-left{href: show_user_profile_path(@question.user.screen_name)}
|
- unless @question.author_is_anonymous
|
||||||
%img.img-rounded.answerbox--img{src: gravatar_url(@question.user)}
|
%a.pull-left{href: show_user_profile_path(@question.user.screen_name)}
|
||||||
.media-body.question-body
|
%img.img-rounded.answerbox--img{src: gravatar_url(@question.user)}
|
||||||
- if user_signed_in?
|
.media-body.question-body
|
||||||
.pull-right
|
- if user_signed_in?
|
||||||
.btn-group
|
.pull-right
|
||||||
%button.btn.btn-link.btn-sm.dropdown-toggle{data: { toggle: :dropdown }, aria: { expanded: :false }}
|
.btn-group
|
||||||
%span.caret
|
%button.btn.btn-link.btn-sm.dropdown-toggle{data: { toggle: :dropdown }, aria: { expanded: :false }}
|
||||||
%ul.dropdown-menu.dropdown-menu-right{role: :menu}
|
%span.caret
|
||||||
- if current_user.mod? or @question.user == current_user
|
%ul.dropdown-menu.dropdown-menu-right{role: :menu}
|
||||||
%li.text-danger
|
- if current_user.mod? or @question.user == current_user
|
||||||
%a{href: '#', data: { action: 'ab-question-destroy', q_id: @question.id, redirect: if @question.author_is_anonymous? then "/" else show_user_questions_path(@question.user.screen_name) end }}
|
%li.text-danger
|
||||||
%i.fa.fa-trash-o
|
%a{href: '#', data: { action: 'ab-question-destroy', q_id: @question.id, redirect: if @question.author_is_anonymous? then "/" else show_user_questions_path(@question.user.screen_name) end }}
|
||||||
Delete Question
|
%i.fa.fa-trash-o
|
||||||
- unless @question.user == current_user
|
Delete Question
|
||||||
%li
|
- unless @question.user == current_user
|
||||||
%a{href: '#', data: { action: 'ab-question-report', q_id: @question.id }}
|
%li
|
||||||
%i.fa.fa-exclamation-triangle
|
%a{href: '#', data: { action: 'ab-question-report', q_id: @question.id }}
|
||||||
Report
|
%i.fa.fa-exclamation-triangle
|
||||||
%h6.text-muted.media-heading.answerbox--question-user
|
Report
|
||||||
= user_screen_name @question.user, @question.author_is_anonymous
|
%h6.text-muted.media-heading.answerbox--question-user
|
||||||
asked
|
= user_screen_name @question.user, @question.author_is_anonymous
|
||||||
%span{title: @question.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
asked
|
||||||
= time_ago_in_words(@question.created_at)
|
%span{title: @question.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||||
ago
|
= time_ago_in_words(@question.created_at)
|
||||||
%p.answerbox--question-text= @question.content
|
ago
|
||||||
|
%p.answerbox--question-text= @question.content
|
||||||
.container.question-page
|
.container.question-page
|
||||||
/ TODO: make this pretty (it's currently C-c'd straight from shared/_answerbox)
|
/ TODO: make this pretty (it's currently C-c'd straight from shared/_answerbox)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue