##// END OF EJS Templates
comments: always show comment count
marcink -
r3640:1403c308 new-ui
parent child Browse files
Show More
@@ -82,11 +82,14 b''
82 82 </div>
83 83 </td>
84 84 <td class="td-comments">
85 %if c.comments.get(cs.raw_id,[]):
86 <a title="${_('Commit has comments')}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=cs.raw_id,_anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
87 <i class="icon-comment"></i> ${len(c.comments[cs.raw_id])}
88 </a>
89 %endif
85 <% cs_comments = c.comments.get(cs.raw_id,[]) %>
86 % if cs_comments:
87 <a title="${_('Commit has comments')}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=cs.raw_id,_anchor='comment-%s' % cs_comments[0].comment_id)}">
88 <i class="icon-comment"></i> ${len(cs_comments)}
89 </a>
90 % else:
91 <i class="icon-comment"></i> ${len(cs_comments)}
92 % endif
90 93 </td>
91 94 </tr>
92 95 %endfor
General Comments 0
You need to be logged in to leave comments. Login now