<%= button_to "通过", approve_review_log_path(review_log), method: :put, class: "btn btn-success" if review_log.may_approve? %> <%= button_to "撤销通过", undo_approve_review_log_path(review_log), method: :put, class: "btn btn-success" if review_log.may_undo_approve? %> <%= button_to "拒绝", reject_review_log_path(review_log), method: :put, class: "btn btn-danger" if review_log.may_reject? %> <%= button_to "撤销拒绝", undo_reject_review_log_path(review_log), method: :put, class: "btn btn-danger" if review_log.may_undo_reject? %> <%= button_to "去除", remove_review_log_path(review_log), method: :put, class: "btn btn-danger" if review_log.may_remove? %> <%= button_to "撤销去除", undo_remove_review_log_path(review_log), method: :put, class: "btn btn-danger" if review_log.may_undo_remove? %> <%# = button_to "禁用用户", ban_user_review_log_path(review_log), method: :put, class: "btn btn-warning", form: { data: { turbo_confirm: "Are you sure?" } } %> <%= button_to "返始值查询", raw_data_review_log_path(review_log), method: :post, class: "btn btn-info"%>