Commit e737a2a02f7becb06518655e442fc1c059c1db95
1 parent
5dc7c177
Exists in
master
and in
2 other branches
Add email templates link in menu
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
header.html.erb
| ... | ... | @@ -7,6 +7,9 @@ |
| 7 | 7 | <li><a href='/myprofile/<%=profile.identifier%>/profile_members' class='custom-control-panel-manage-members'>Gerenciar Integrantes</a></li> |
| 8 | 8 | <li><a href='/myprofile/<%=profile.identifier%>/profile_roles' class='custom-control-panel-manage-roles'>Gerenciar Papéis</a></li> |
| 9 | 9 | <% end %> |
| 10 | + <% if profile.members.by_role(profile.roles.reject {|r| !r.has_permission?('manage_email_templates')}).include?(current_person) %> | |
| 11 | + <li><a href='/myprofile/<%=profile.identifier%>/email_templates' class='custom-control-panel-manage-email-templates'>Gerenciar Templates de Email</a></li> | |
| 12 | + <% end %> | |
| 10 | 13 | <% if profile.members.by_role(profile.roles.reject {|r| !r.has_permission?('view_tasks')}).include?(current_person) %> |
| 11 | 14 | <li><a href='/myprofile/<%=profile.identifier%>/tasks' class='custom-control-panel-manage-proposals-after'>Realizar Triagem</a></li> |
| 12 | 15 | <% end %> | ... | ... |