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

This commit is contained in:
nigel007 2019-09-24 07:31:46 +08:00
parent c28c2b7bce
commit 1b05b05de6
2 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
<a href="javascript:void(0)" class="talk_edit fr"> </a>
<%= render :partial => 'action_menu' %>
<div class="cl"></div>
<% if @issue.description? || @issue.attachments.any? -%>
<% if @issue.description? || @issue.attachments.length > 0 -%>
<div class="talk_info mb10 issue_desc ke-block" id="issue_desc_<%= @issue.id %>" style="word-break:break-all;">
<% if @issue.description? %>
<%#= link_to l(:button_quote), quoted_issue_path(@issue.id), :remote => true, :method => 'post', :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>

View File