<%- user = prize_user.user -%> <%= prize_user.competition_prize.name %> <%= prize_user.rank %> <%= prize_user.competition_team.name %> <%= user.real_name %> <%= user.identity %> <%= user.is_teacher? ? user.user_extension.technical_title : user.user_extension.student_id %> <%= user.school_name %> <%= display_auth_state(user.authentication?, user.process_real_name_apply.present?) %> <%= display_auth_state(user.professional_certification?, user.process_professional_apply.present?) %> <%= display_auth_state user.phone_binded? %> <%= display_auth_state prize_user.leader?, error: '' %> <%= display_text prize_user.approved_at&.strftime('%Y-%m-%d %H:%M') %> <%= display_text prize_user.approver&.real_name %> <% if prize_user.leader? && prize_user.competition_prize.category == 'bonus' %> <% bank_content = [prize_user.extra&.[]('bank'), prize_user.extra&.[]('second_bank'), prize_user.extra&.[]('card_no')].compact.join('
').presence || '无' %> <%= javascript_void_link('查看银行账户', data: { toggle: 'tooltip', title: bank_content.html_safe, html: true, placement: 'left', trigger: 'click' }) %> <% end %> <% if prize_user.pending? %> <%= link_to('审批通过', approve_admins_competition_competition_prize_user_path(prize_user.competition, prize_user), data: { confirm: '确认审批通过吗?' }, remote: true, method: :post, class: 'approve-action') %> <% else %> <%= link_to('撤销审批', unapprove_admins_competition_competition_prize_user_path(prize_user.competition, prize_user), data: { confirm: '确认撤销审批吗?' }, remote: true, method: :post, class: 'approve-action') %> <% end %>