2014-12-09 14:21:41 -08:00
|
|
|
.panel.inbox-box{class: "panel-#{i.new? ? 'primary' : 'default'}", data: { id: i.id }}
|
|
|
|
.panel-heading
|
|
|
|
.media
|
|
|
|
- unless i.question.author_is_anonymous
|
|
|
|
%a.pull-left{href: show_user_profile_path(i.question.user.screen_name)}
|
|
|
|
%img.img-rounded.answerbox--img{src: gravatar_url(i.question.user)}
|
|
|
|
.media-body
|
|
|
|
%h6.text-muted.media-heading.answerbox--question-user
|
|
|
|
= user_screen_name i.question.user, i.question.author_is_anonymous
|
|
|
|
asked
|
|
|
|
= time_ago_in_words(i.question.created_at)
|
|
|
|
ago
|
|
|
|
- unless i.question.author_is_anonymous
|
|
|
|
- if i.question.answer_count > 0
|
|
|
|
·
|
|
|
|
%a{href: show_user_question_path(i.question.user.screen_name, i.question.id)}
|
|
|
|
#{i.question.answer_count} response(s)
|
2015-01-08 13:28:56 -08:00
|
|
|
%p.answerbox--question-text= emojify i.question.content, 16
|
2014-12-09 14:21:41 -08:00
|
|
|
.panel-body
|
2014-12-10 11:38:54 -08:00
|
|
|
%textarea.form-control{name: 'ib-answer', placeholder: 'Write your answer here...', data: { id: i.id }}
|
2014-12-09 14:21:41 -08:00
|
|
|
%br/
|
|
|
|
%button.btn.btn-success{name: 'ib-answer', data: { ib_id: i.id }}
|
|
|
|
Answer
|
|
|
|
%button.btn.btn-danger{name: 'ib-destroy', data: { ib_id: i.id }}
|
2014-12-12 15:01:54 -08:00
|
|
|
Delete
|
2014-12-13 06:17:50 -08:00
|
|
|
- current_user.services.each do |service|
|
|
|
|
%label
|
2014-12-13 06:49:19 -08:00
|
|
|
%input{type: 'checkbox', name: 'ib-share', checked: :checked, data: { ib_id: i.id, service: service.provider }}
|
2014-12-13 06:17:50 -08:00
|
|
|
Post to
|
|
|
|
= service.provider.capitalize
|