From a259c19ef0c2747c692ea17fe3354651e858ebe8 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Sat, 3 Jan 2015 18:57:30 +0100 Subject: [PATCH] how about some updated design for this --- app/views/question/show.html.haml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/app/views/question/show.html.haml b/app/views/question/show.html.haml index 7535bf82..4c360262 100644 --- a/app/views/question/show.html.haml +++ b/app/views/question/show.html.haml @@ -1,21 +1,23 @@ .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)} - .media-body - %h6.text-muted.media-heading.answerbox--question-user - = user_screen_name @question.user, @question.author_is_anonymous - asked - = time_ago_in_words(@question.created_at) - ago - %p.answerbox--question-text= @question.content + .panel.panel-default + .panel-body + .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)} + .media-body + %h6.text-muted.media-heading.answerbox--question-user + = user_screen_name @question.user, @question.author_is_anonymous + asked + = time_ago_in_words(@question.created_at) + ago + %p.answerbox--question-text= @question.content - if user_signed_in? and !current_user.answered? @question - #q-answer-box - Add your Senf here: + .panel.panel-default#q-answer-box + .panel-heading + %h3.panel-title This question was not in your inbox? Answer it here! .panel-body %textarea#q-answer.form-control{placeholder: 'Write your answer here...', data: { id: @question.id }} %br/