2014-12-07 11:51:44 -08:00
|
|
|
.container.j2-page
|
|
|
|
/ TODO: make this pretty (it's currently C-c'd straight from shared/_answerbox)
|
|
|
|
.panel-heading
|
|
|
|
.media
|
|
|
|
- unless @question.author_is_anonymous
|
|
|
|
%a.pull-left{href: show_user_profile_path(@question.user.screen_name)}
|
2014-12-09 06:32:29 -08:00
|
|
|
%img.img-rounded.answerbox--img{src: gravatar_url(@question.user)}
|
2014-12-07 11:51:44 -08:00
|
|
|
.media-body
|
2014-12-09 06:32:29 -08:00
|
|
|
%h6.text-muted.media-heading.answerbox--question-user
|
2014-12-07 11:51:44 -08:00
|
|
|
= user_screen_name @question.user, @question.author_is_anonymous
|
|
|
|
asked
|
|
|
|
= time_ago_in_words(@question.created_at)
|
|
|
|
ago
|
2014-12-09 06:32:29 -08:00
|
|
|
%p.answerbox--question-text= @question.content
|
2014-12-07 11:51:44 -08:00
|
|
|
|
|
|
|
- @answers.each do |a|
|
|
|
|
= render 'shared/answerbox', a: a, show_question: false
|
|
|
|
|