修改了any?函数,修改为.length > 0

This commit is contained in:
nigel007 2019-09-24 07:24:18 +08:00
parent d940d5eb1d
commit d2d50e6a92
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<% if activity.attachments.any? %>
<% if activity.attachments.length > 0 %>
<% activity.attachments.each do |attachment| %>
<div class="break_word">
<span class="fl">

View File

@ -87,7 +87,7 @@
<% end %>
<% end %>
<div class="cl"></div>
<% if activity.attachments.any? %>
<% if activity.attachments.length > 0 %>
<div id="div_issue_attachment_<%=user_activity_id %>" style="margin-top: -10px; margin-bottom: -20px;">
<div>
<a href="javascript:void(0)" class="link_img fl">