mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
created can_manage_comments helper for rendering button
This commit is contained in:
parent
e10a2491d3
commit
74dcd75a8c
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