- provide(:title, question_title(@question)) = render 'shared/question_header', question: @question, hidden: false = render 'shared/question_header', question: @question, hidden: true .container.question-page / TODO: make this pretty (it's currently C-c'd straight from shared/_answerbox) #answers - @answers.each do |a| = render 'shared/answerbox', a: a, show_question: false = render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id - if @more_data_available %button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @answers_last_id }} Load more - if user_signed_in? and !current_user.answered? @question and current_user != @question.user and @question.user.privacy_allow_stranger_answers .card#q-answer-box .card-header %h3.card-title= t('views.question.title') .card-body %textarea#q-answer.form-control{placeholder: t('views.placeholder.inbox'), data: { id: @question.id }} %br/ %button#q-answer.btn.btn-success{data: { q_id: @question.id }} = t('views.actions.answer') - current_user.services.each do |service| %label %input{type: 'checkbox', name: 'share', checked: :checked, data: { q_id: @question.id, service: service.provider }} = t('views.inbox.entry.sharing.post', service: service.provider.capitalize)