Only show Moderate link if permissions allow it
This commit is contained in:
parent
006a85a8a5
commit
c97a711e6b
1 changed files with 4 additions and 3 deletions
|
|
@ -6,9 +6,10 @@
|
||||||
li class=('active' if action_name=='screenshots')
|
li class=('active' if action_name=='screenshots')
|
||||||
= link_to my_screenshots_path
|
= link_to my_screenshots_path
|
||||||
= fa_icon 'camera 2x', text: 'Screenshots'
|
= fa_icon 'camera 2x', text: 'Screenshots'
|
||||||
li class=('active' if action_name=='moderate_list')
|
- if can?(:approve, Screenshot)
|
||||||
= link_to moderate_list_path
|
li class=('active' if action_name=='moderate_list')
|
||||||
= fa_icon 'check 2x', text: 'Moderate'
|
= link_to moderate_list_path
|
||||||
|
= fa_icon 'check 2x', text: 'Moderate'
|
||||||
- if can? :view, Log
|
- if can? :view, Log
|
||||||
li class=('active' if action_name=='logs')
|
li class=('active' if action_name=='logs')
|
||||||
= link_to logs_path
|
= link_to logs_path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue