- type ||= nil .card.questionbox{data: { id: q.id }} .card-body .media - if type == "discover" .pull-left %a{href: user_screen_name(q.user, link_only: true)} %img.answerbox--img{src: q.user&.profile_picture&.url(:medium)} .media-body - if user_signed_in? .pull-right .btn-group %button.btn.btn-link.btn-sm.dropdown-toggle{data: { toggle: :dropdown }, aria: { expanded: :false }} %span.caret %ul.dropdown-menu.dropdown-menu-right{role: :menu} - if current_user.mod? or q.user == current_user %li.text-danger %a{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: q.id }} %i.fa.fa-trash-o = t 'views.actions.delete' - unless q.user == current_user %li %a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: q.id }} %i.fa.fa-exclamation-triangle = t 'views.actions.report' %h6.media-heading.text-muted.answerbox--question-user = raw t('views.answerbox.asked', user: user_screen_name(q.user), time: time_tooltip(q)) - if q.answer_count > 1 ยท %a{href: show_user_question_path(q.user.screen_name, q.id)} = pluralize(q.answer_count, t('views.general.answer')) %p.answerbox--question-text = q.content