Fix question page dropdowns using old Bootstrap layout

This commit is contained in:
Andreas Nedbal 2020-05-09 05:39:01 +02:00
parent c9866e87bf
commit 0db1de9552

View file

@ -12,17 +12,15 @@
%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
- unless hidden - unless hidden
%ul.dropdown-menu.dropdown-menu-right{role: :menu} .dropdown-menu.dropdown-menu-right{role: :menu}
- if current_user.mod? or question.user == current_user - if current_user.mod? or question.user == current_user
%li.text-danger %a.dropdown-item.text-danger{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: question.id, redirect: if question.author_is_anonymous? then "/" else show_user_questions_path(question.user.screen_name) end }}
%a{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: question.id, redirect: if question.author_is_anonymous? then "/" else show_user_questions_path(question.user.screen_name) end }} %i.fa.fa-trash-o
%i.fa.fa-trash-o = t 'views.actions.delete'
= t 'views.actions.delete'
- unless question.user == current_user - unless question.user == current_user
%li %a.dropdown-item{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: question.id }}
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: question.id }} %i.fa.fa-exclamation-triangle
%i.fa.fa-exclamation-triangle = t 'views.actions.report'
= t 'views.actions.report'
%h6.text-muted.media-heading.answerbox__question-user %h6.text-muted.media-heading.answerbox__question-user
- if hidden - if hidden
= user_screen_name question.user, anonymous: question.author_is_anonymous, url: false = user_screen_name question.user, anonymous: question.author_is_anonymous, url: false