Fix question dropdown using old Bootstrap layout

This commit is contained in:
Andreas Nedbal 2020-05-09 05:03:25 +02:00
parent adf5968ad0
commit 6798dcd090
1 changed files with 7 additions and 9 deletions

View File

@ -12,17 +12,15 @@
.btn-group .btn-group
%button.btn.btn-link.btn-sm.dropdown-toggle{data: { toggle: :dropdown }, aria: { expanded: :false }} %button.btn.btn-link.btn-sm.dropdown-toggle{data: { toggle: :dropdown }, aria: { expanded: :false }}
%span.caret %span.caret
%ul.dropdown-menu.dropdown-menu-right{role: :menu} .dropdown-menu.dropdown-menu-right{role: :menu}
- if current_user.mod? or q.user == current_user - if current_user.mod? or q.user == current_user
%li.text-danger %a.dropdown-item.text-danger{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: q.id }}
%a{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: q.id }} %i.fa.fa-trash-o
%i.fa.fa-trash-o = t 'views.actions.delete'
= t 'views.actions.delete'
- unless q.user == current_user - unless q.user == current_user
%li %a.dropdown-item{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: q.id }}
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: q.id }} %i.fa.fa-exclamation-triangle
%i.fa.fa-exclamation-triangle = t 'views.actions.report'
= t 'views.actions.report'
%h6.media-heading.text-muted.answerbox__question-user %h6.media-heading.text-muted.answerbox__question-user
= raw t('views.answerbox.asked', user: user_screen_name(q.user), time: time_tooltip(q)) = raw t('views.answerbox.asked', user: user_screen_name(q.user), time: time_tooltip(q))
- if q.answer_count > 1 - if q.answer_count > 1