Retrospring/app/views/question/show.html.haml

19 lines
723 B
Plaintext
Raw Normal View History

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)}
%img.img-rounded.answerbox--img{src: gravatar_url(@question.user)}
2014-12-07 11:51:44 -08:00
.media-body
%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
%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