Commit 840197c7948201b3b14fb790e703636e30b16bf0
1 parent
c6333021
Exists in
master
and in
2 other branches
added link to manager users page
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
header.html.erb
| @@ -48,6 +48,9 @@ | @@ -48,6 +48,9 @@ | ||
| 48 | <% if profile.members.by_role(profile.roles.reject {|r| !r.has_permission?('view_tasks')}).include?(current_person) %> | 48 | <% if profile.members.by_role(profile.roles.reject {|r| !r.has_permission?('view_tasks')}).include?(current_person) %> |
| 49 | <li class="<%=tab_active_class('moderate_proposals')%>"><a href='/myprofile/<%=profile.identifier%>/plugin/proposals_discussion/tasks?view_only=true' class='custom-control-panel-manage-proposals-after'>Realizar moderação</a></li> | 49 | <li class="<%=tab_active_class('moderate_proposals')%>"><a href='/myprofile/<%=profile.identifier%>/plugin/proposals_discussion/tasks?view_only=true' class='custom-control-panel-manage-proposals-after'>Realizar moderação</a></li> |
| 50 | <% end %> | 50 | <% end %> |
| 51 | + <% if profile.members.by_role(profile.roles.reject {|r| !r.has_permission('manage_environment_users')}).include(current_person) %> | ||
| 52 | + <li class="<%=tab_active_class('manage_users')%>"><a href='/admin/users' class='custom-control-panel-manage-users'>Gerenciar Usuários</a></li> | ||
| 53 | + <% end %> | ||
| 51 | <% else %> | 54 | <% else %> |
| 52 | <li><a href="/profile/<%= profile.identifier %>/join" class='custom-control-panel-join join-community'>Solicitar entrada no ambiente de Gestão</a></li> | 55 | <li><a href="/profile/<%= profile.identifier %>/join" class='custom-control-panel-join join-community'>Solicitar entrada no ambiente de Gestão</a></li> |
| 53 | <% end %> | 56 | <% end %> |