|
|
@ -4,12 +4,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
<% manager_group.partner_managers.each do |manager| %>
|
|
|
|
<% manager_group.partner_managers.each do |manager| %>
|
|
|
|
<div class="partner-manager-item partner-manager-item-<%= manager.id %>">
|
|
|
|
<div class="partner-manager-item partner-manager-item-<%= manager.id %>">
|
|
|
|
|
|
|
|
<% if !manager_group.admin? || manager.user_id != current_user.id %>
|
|
|
|
<%= delete_link 'x',
|
|
|
|
<%= delete_link 'x',
|
|
|
|
remove_partner_manager_partner_path(current_partner, manager_id: manager.id, element: ".partner-manager-item-#{manager.id}"),
|
|
|
|
remove_partner_manager_partner_path(current_partner, manager_id: manager.id, element: ".partner-manager-item-#{manager.id}"),
|
|
|
|
data: { toggle: 'tooltip', title: '删除' },
|
|
|
|
data: { toggle: 'tooltip', title: '删除' },
|
|
|
|
class: 'remove-partner-manager-action' do %>
|
|
|
|
class: 'remove-partner-manager-action' do %>
|
|
|
|
<i class="fa fa-times-circle"></i>
|
|
|
|
<i class="fa fa-times-circle"></i>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<%= link_to "/users/#{manager.user.login}", data: { toggle: 'tooltip', title: '查看个人主页' },
|
|
|
|
<%= link_to "/users/#{manager.user.login}", data: { toggle: 'tooltip', title: '查看个人主页' },
|
|
|
|
target: '_blank', class: 'partner-manager-item-avatar' do %>
|
|
|
|
target: '_blank', class: 'partner-manager-item-avatar' do %>
|
|
|
|