|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
<% if applies.present? %>
|
|
|
|
|
<% applies.each do |apply| %>
|
|
|
|
|
<% user = apply.user %>
|
|
|
|
|
<tr class="professional-authentication-item professional-authentication-<%= user.id %>">
|
|
|
|
|
<tr class="professional-authentication-item professional-authentication-<%= apply.id %>">
|
|
|
|
|
<td>
|
|
|
|
|
<%= link_to "/users/#{user.login}", class: 'professional-authentication-avatar', target: '_blank', data: { toggle: 'tooltip', title: '个人主页' } do %>
|
|
|
|
|
<img src="/images/<%= url_to_avatar(user) %>" class="rounded-circle" width="40" height="40" />
|
|
|
|
@ -53,11 +53,11 @@
|
|
|
|
|
<td><span class="apply-status-<%= apply.status %>"><%= apply.status_text %></span></td>
|
|
|
|
|
<% else %>
|
|
|
|
|
<td class="action-container">
|
|
|
|
|
<%= agree_link '同意', agree_admins_professional_authentication_path(apply, element: ".professional-authentication-#{user.id}"), 'data-confirm': '确认审核通过?' %>
|
|
|
|
|
<%= agree_link '同意', agree_admins_professional_authentication_path(apply, element: ".professional-authentication-#{apply.id}"), 'data-confirm': '确认审核通过?' %>
|
|
|
|
|
<%= javascript_void_link('拒绝', class: 'action refuse-action',
|
|
|
|
|
data: {
|
|
|
|
|
toggle: 'modal', target: '.admin-common-refuse-modal', id: apply.id,
|
|
|
|
|
url: refuse_admins_professional_authentication_path(apply, element: ".professional-authentication-#{user.id}")
|
|
|
|
|
url: refuse_admins_professional_authentication_path(apply, element: ".professional-authentication-#{apply.id}")
|
|
|
|
|
}) %>
|
|
|
|
|
</td>
|
|
|
|
|
<% end %>
|
|
|
|
|