|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
<td class="shixun-line-no"><%= page_no %></td>
|
|
|
|
|
<td><%= shixun.identifier %></td>
|
|
|
|
|
<td class="text-left">
|
|
|
|
|
<span>
|
|
|
|
@ -21,6 +20,13 @@
|
|
|
|
|
<%= image_tag(imageUrl, width: 60, height: 40, class: "preview-image shixun-image-#{shixun.id}", data: { toggle: 'tooltip', title: '点击预览' }, style: imageExists ? '' : 'display:none') %>
|
|
|
|
|
<%= javascript_void_link imageExists ? '重新上传' : '上传图片', class: 'action upload-shixun-image-action', data: { source_id: shixun.id, source_type: 'Shixun', toggle: 'modal', target: '.admin-upload-file-modal' } %>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="shixun-setting-weapp-image">
|
|
|
|
|
<% weappImageExists = Util::FileManage.exists?(shixun, '_weapp') %>
|
|
|
|
|
<% imageUrl = weappImageExists ? Util::FileManage.source_disk_file_url(shixun, '_weapp') : '' %>
|
|
|
|
|
<%= image_tag(imageUrl, width: 60, height: 40, class: "preview-image shixun-weapp-image-#{shixun.id}", data: { toggle: 'tooltip', title: '点击预览' }, style: weappImageExists ? '' : 'display:none') %>
|
|
|
|
|
<%= raw '<br/>' if weappImageExists %>
|
|
|
|
|
<%= javascript_void_link weappImageExists ? '重新上传' : '上传图片', class: 'action upload-shixun-weapp-image-action', data: { source_id: shixun.id, source_type: 'Shixun', suffix: '_weapp', toggle: 'modal', target: '.admin-upload-file-modal' } %>
|
|
|
|
|
</td>
|
|
|
|
|
<td><%= link_to shixun.owner.try(:real_name),"/users/#{shixun.owner.login}",target:'_blank' %></td>
|
|
|
|
|
<td>
|
|
|
|
|
<% if shixun.status.to_i < 3 %>
|
|
|
|
|