评论数为0时不显示“查看所有评论”
This commit is contained in:
parent
38391b7e96
commit
23a6408c9f
|
@ -55,7 +55,7 @@
|
|||
<%= l(:label_updated_time_on, format_date(issue.updated_on)).html_safe %>
|
||||
<div class="find-comment-class">
|
||||
<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>
|
||||
<%= l(:label_comments_count, :count => issue.journals.all.count) %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue