Fix question page dropdowns using old Bootstrap layout
This commit is contained in:
parent
c9866e87bf
commit
0db1de9552
|
@ -12,17 +12,15 @@
|
|||
%button.btn.btn-link.btn-sm.dropdown-toggle{data: { toggle: :dropdown }, aria: { expanded: :false }}
|
||||
%span.caret
|
||||
- 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
|
||||
%li.text-danger
|
||||
%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
|
||||
= t 'views.actions.delete'
|
||||
%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 }}
|
||||
%i.fa.fa-trash-o
|
||||
= t 'views.actions.delete'
|
||||
- unless question.user == current_user
|
||||
%li
|
||||
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: question.id }}
|
||||
%i.fa.fa-exclamation-triangle
|
||||
= t 'views.actions.report'
|
||||
%a.dropdown-item{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: question.id }}
|
||||
%i.fa.fa-exclamation-triangle
|
||||
= t 'views.actions.report'
|
||||
%h6.text-muted.media-heading.answerbox__question-user
|
||||
- if hidden
|
||||
= user_screen_name question.user, anonymous: question.author_is_anonymous, url: false
|
||||
|
|
Loading…
Reference in New Issue