created can_manage_comments helper for rendering button
This commit is contained in:
parent
84cd952b57
commit
a3b6f204cb
4 changed files with 8 additions and 4 deletions
|
|
@ -25,7 +25,7 @@
|
|||
%b.caret
|
||||
%ul.dropdown-menu
|
||||
= render 'layouts/user_menu'
|
||||
- if can? :index, Comment #TODO modify condition
|
||||
- if can_manage_comments(@conference)
|
||||
%ul.nav.navbar-nav.navbar-right
|
||||
%li.dropdown
|
||||
%a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#", id: "unread-comments-preview"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue