评论数为0时不显示“查看所有评论”
This commit is contained in:
parent
38391b7e96
commit
23a6408c9f
|
@ -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 -%>
|
||||||
|
|
Loading…
Reference in New Issue