2022-12-09 19:44:41 +08:00
|
|
|
<div class="users-access-cell">
|
|
|
|
<% if can_manage_protocol_users?(protocol) %>
|
|
|
|
<%= link_to edit_access_permissions_protocol_path(protocol), class: 'protocol-users-link', data: { action: 'remote-modal' } do %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: 'protocols/index/users_list', locals: { protocol: protocol } %>
|
2022-12-09 19:44:41 +08:00
|
|
|
<span class="new-user global-avatar-container">
|
2023-06-08 14:33:37 +08:00
|
|
|
<i class="sn-icon sn-icon-new-task"></i>
|
2022-12-09 19:44:41 +08:00
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to access_permissions_protocol_path(protocol), class: 'protocol-users-link', data: { action: 'remote-modal' } do %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: 'protocols/index/users_list', locals: { protocol: protocol } %>
|
2022-12-09 19:44:41 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|