.modal-new-top.col-xs-12.pl0.mb15 .modal-close = link_to '', '#', class: 'close-dialog', data: {dismiss: :modal} h4 = @question.title #answer-show data-id=@answer.id .modal-header.no-border button.close data-dismiss="modal" type="button" .col-sm-6.mb20 - if @answer.canvas and @answer.canvas.image_data .bg-white.center.black-border.ref-diagram-wrapper = image_tag @answer.canvas.image_data, class: "ptb10" .col-sm-6.mb20 .semibold | Your question was:  .semibold.mediumgrey = @question.text .semibold | Answer is:  span.mediumgrey = @answer.text - if @answer.attachments.exists? .center.ref-diagram-wrapper .ptb20.semibold span.tdia | Attachments .clearfix - @answer.attachments.each do |attachment| .filename.inline = link_to attachment.attachment_file_name, attachment.url, target: :_blank .filetype.inline = attachment.attachment_content_type.split('/').last .filesize.inline = number_to_human_size(attachment.attachment_file_size) .clearfix .clearfix - if @question.owner?(current_user) - unless @answer.accepted .pt10 = link_to 'Accept Answer', accept_answer_and_pay_question_answer_path(@question, @answer), method: :patch, remote: true, class: 'btn btn-default mb20'