Retrospring/app/views/shared/_question.html.haml

14 lines
423 B
Plaintext
Raw Normal View History

2014-12-19 13:52:12 -08:00
.panel.panel-default
.media
.media-body
%h6.media-heading.text-muted.answerbox--question-user
2014-12-19 13:56:16 -08:00
= user_screen_name q.user
2014-12-19 13:52:12 -08:00
asked
2014-12-19 13:56:16 -08:00
= time_ago_in_words(q.created_at)
2014-12-19 13:52:12 -08:00
ago
2014-12-19 13:56:16 -08:00
- if q.answer_count > 1
2014-12-19 13:52:12 -08:00
·
2014-12-19 13:56:16 -08:00
%a{href: show_user_question_path(q.user.screen_name, q.id)}
#{q.answer_count} answers
2014-12-19 13:52:12 -08:00
%p.answerbox--question-text
= a.question.content