how about some updated design for this

This commit is contained in:
Andreas N 2015-01-03 18:57:30 +01:00
parent e37907f948
commit a259c19ef0
1 changed files with 16 additions and 14 deletions

View File

@ -1,21 +1,23 @@
.container.j2-page .container.j2-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)
.panel-heading .panel.panel-default
.media .panel-body
- unless @question.author_is_anonymous .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 %img.img-rounded.answerbox--img{src: gravatar_url(@question.user)}
%h6.text-muted.media-heading.answerbox--question-user .media-body
= 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
= time_ago_in_words(@question.created_at) asked
ago = time_ago_in_words(@question.created_at)
%p.answerbox--question-text= @question.content ago
%p.answerbox--question-text= @question.content
- if user_signed_in? and !current_user.answered? @question - if user_signed_in? and !current_user.answered? @question
#q-answer-box .panel.panel-default#q-answer-box
Add your Senf here: .panel-heading
%h3.panel-title This question was not in your inbox? Answer it here!
.panel-body .panel-body
%textarea#q-answer.form-control{placeholder: 'Write your answer here...', data: { id: @question.id }} %textarea#q-answer.form-control{placeholder: 'Write your answer here...', data: { id: @question.id }}
%br/ %br/