评论数为0时不显示“查看所有评论”

This commit is contained in:
whimlex 2015-04-11 11:19:24 +08:00
parent 38391b7e96
commit 23a6408c9f
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@
<%= l(:label_updated_time_on, format_date(issue.updated_on)).html_safe %> <%= l(:label_updated_time_on, format_date(issue.updated_on)).html_safe %>
<div class="find-comment-class"> <div class="find-comment-class">
<span> <span>
<%= link_to l(:label_find_all_comments), issue_path(issue.id) %> <%= link_to l(:label_find_all_comments), issue_path(issue.id) if issue.journals.all.count!= 0 %>
</span> </span>
<%= l(:label_comments_count, :count => issue.journals.all.count) %> <%= l(:label_comments_count, :count => issue.journals.all.count) %>
</div> </div>
</ul> </ul>
<% end -%> <% end -%>