mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-22 00:27:48 +01:00
Fix question page dropdowns using old Bootstrap layout
This commit is contained in:
parent
c9866e87bf
commit
0db1de9552
1 changed files with 7 additions and 9 deletions
|
@ -12,15 +12,13 @@
|
||||||
%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
|
||||||
|
|
Loading…
Reference in a new issue