You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.2 KiB
22 lines
1.2 KiB
<div class="partner-manager-item add-partner-manager-item">
|
|
<div class="partner-manager-item-avatar" data-toggle="modal" data-target=".partner-add-partner-manager-modal" data-id="<%= manager_group.id %>"></div>
|
|
</div>
|
|
|
|
<% manager_group.partner_managers.each do |manager| %>
|
|
<div class="partner-manager-item partner-manager-item-<%= manager.id %>">
|
|
<% if !manager_group.admin? || manager.user_id != current_user.id %>
|
|
<%= delete_link 'x',
|
|
remove_partner_manager_partner_path(current_partner, manager_id: manager.id, element: ".partner-manager-item-#{manager.id}"),
|
|
data: { toggle: 'tooltip', title: '删除' },
|
|
class: 'remove-partner-manager-action' do %>
|
|
<i class="fa fa-times-circle"></i>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= link_to "/users/#{manager.user.login}", data: { toggle: 'tooltip', title: '查看个人主页' },
|
|
target: '_blank', class: 'partner-manager-item-avatar' do %>
|
|
<img src="/images/<%= url_to_avatar(manager.user) %>" />
|
|
<% end %>
|
|
<div><%= overflow_hidden_span(manager.user.real_name, width: 80, placement: 'bottom') %></div>
|
|
</div>
|
|
<% end %> |