From 056eb0da12f1be60791ec189ec290c451a90ea60 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 19 Nov 2019 14:22:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=AE=9E=E8=B7=B5=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E5=90=8E=E5=8F=B0=E7=9A=84=E4=B8=8A=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/admins/subjects/shared/_list.html.erb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/views/admins/subjects/shared/_list.html.erb b/app/views/admins/subjects/shared/_list.html.erb index d9a194b21..5a37b64e7 100644 --- a/app/views/admins/subjects/shared/_list.html.erb +++ b/app/views/admins/subjects/shared/_list.html.erb @@ -7,7 +7,6 @@ 技术体系 等级体系 封面 - 二维码图片 创建者 单位 开课人数 @@ -34,13 +33,6 @@ <%= image_tag(image_exists ? Util::FileManage.source_disk_file_url(subject) : '', height: 40, class: "w-100 preview-image subject-image-#{subject.id}", style: image_exists ? '' : 'display:none') %> <%= javascript_void_link image_exists ? '重新上传' : '上传图片', class: 'action upload-image-action', data: { source_id: subject.id, source_type: 'Subject', toggle: 'modal', target: '.admin-upload-file-modal' } %> - - <% codeImageExists = Util::FileManage.exists?(subject, '_qrcode') %> - <% imageUrl = codeImageExists ? Util::FileManage.source_disk_file_url(subject, '_qrcode') : '' %> - <%= image_tag(imageUrl, width: 60, height: 40, class: "preview-image subject-weapp-image-#{subject.id}", data: { toggle: 'tooltip', title: '点击预览' }, style: codeImageExists ? '' : 'display:none') %> - <%= raw '
' if codeImageExists %> - <%= javascript_void_link codeImageExists ? '重新上传' : '上传图片', class: 'action upload-subject-qrcode-image-action', data: { source_id: subject.id, source_type: 'Subject', suffix: '_qrcode', toggle: 'modal', target: '.admin-upload-file-modal' } %> - <%= subject.user.real_name %> <%= subject.user.school_name %> <%= subject.student_count %>