Show More
@@ -82,10 +82,13 b'' | |||||
82 | </div> |
|
82 | </div> | |
83 | </td> |
|
83 | </td> | |
84 | <td class="td-comments"> |
|
84 | <td class="td-comments"> | |
85 |
|
|
85 | <% cs_comments = 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)}"> |
|
86 | % if cs_comments: | |
87 | <i class="icon-comment"></i> ${len(c.comments[cs.raw_id])} |
|
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)} | |||
88 | </a> |
|
89 | </a> | |
|
90 | % else: | |||
|
91 | <i class="icon-comment"></i> ${len(cs_comments)} | |||
89 |
|
|
92 | % endif | |
90 | </td> |
|
93 | </td> | |
91 | </tr> |
|
94 | </tr> |
General Comments 0
You need to be logged in to leave comments.
Login now