修改了any?函数,修改为.length > 0
This commit is contained in:
parent
d940d5eb1d
commit
d2d50e6a92
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue