Skip inbox entry actions menu if it's be empty
This commit is contained in:
parent
649bacfc45
commit
c90daf1756
|
@ -12,6 +12,7 @@
|
||||||
%a{ href: show_user_question_path(i.question.user.screen_name, i.question.id) }
|
%a{ href: show_user_question_path(i.question.user.screen_name, i.question.id) }
|
||||||
= pluralize(i.question.answer_count, t('views.inbox.entry.response'))
|
= pluralize(i.question.answer_count, t('views.inbox.entry.response'))
|
||||||
%p.answerbox__question-text= i.question.content
|
%p.answerbox__question-text= i.question.content
|
||||||
|
- if i.question.user_id != current_user.id || current_user.has_role?(:administrator)
|
||||||
.pull-right
|
.pull-right
|
||||||
.btn-group
|
.btn-group
|
||||||
%button.btn.btn-default.btn-sm.dropdown-toggle{ data: { toggle: :dropdown }, aria: { expanded: false } }
|
%button.btn.btn-default.btn-sm.dropdown-toggle{ data: { toggle: :dropdown }, aria: { expanded: false } }
|
||||||
|
|
Loading…
Reference in New Issue