From 27e549796fda5c6f19475c461ecfe94155da9272 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Mon, 26 Aug 2019 10:28:50 +0800 Subject: [PATCH] fix --- .../admins/identity_authentications/shared/_list.html.erb | 6 +++--- .../professional_authentications/shared/_list.html.erb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/admins/identity_authentications/shared/_list.html.erb b/app/views/admins/identity_authentications/shared/_list.html.erb index 1cd849e72..f6aa53dd1 100644 --- a/app/views/admins/identity_authentications/shared/_list.html.erb +++ b/app/views/admins/identity_authentications/shared/_list.html.erb @@ -27,7 +27,7 @@ <% if applies.present? %> <% applies.each do |apply| %> <% user = apply.user %> - + <%= link_to "/users/#{user.login}", class: 'identity-authentication-avatar', target: '_blank', data: { toggle: 'tooltip', title: '个人主页' } do %> @@ -55,11 +55,11 @@ <%= apply.status_text %> <% else %> - <%= agree_link '同意', agree_admins_identity_authentication_path(apply, element: ".identity-authentication-#{user.id}"), 'data-confirm': '确认审核通过?' %> + <%= agree_link '同意', agree_admins_identity_authentication_path(apply, element: ".identity-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_identity_authentication_path(apply, element: ".identity-authentication-#{user.id}") + url: refuse_admins_identity_authentication_path(apply, element: ".identity-authentication-#{apply.id}") }) %> <% end %> diff --git a/app/views/admins/professional_authentications/shared/_list.html.erb b/app/views/admins/professional_authentications/shared/_list.html.erb index acd62eae5..fd7685f98 100644 --- a/app/views/admins/professional_authentications/shared/_list.html.erb +++ b/app/views/admins/professional_authentications/shared/_list.html.erb @@ -26,7 +26,7 @@ <% if applies.present? %> <% applies.each do |apply| %> <% user = apply.user %> - + <%= link_to "/users/#{user.login}", class: 'professional-authentication-avatar', target: '_blank', data: { toggle: 'tooltip', title: '个人主页' } do %> @@ -53,11 +53,11 @@ <%= apply.status_text %> <% else %> - <%= 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}") }) %> <% end %>