# HG changeset patch # User Marcin Kuzminski # Date 2019-04-19 15:51:35 # Node ID 1403c308ece5133c8a9c7015feef8d6e94581dc4 # Parent 7ee2e326ac1c26ffcfb6c4c4633ad778e921e2aa comments: always show comment count diff --git a/rhodecode/templates/summary/summary_commits.mako b/rhodecode/templates/summary/summary_commits.mako --- a/rhodecode/templates/summary/summary_commits.mako +++ b/rhodecode/templates/summary/summary_commits.mako @@ -82,11 +82,14 @@ - %if c.comments.get(cs.raw_id,[]): - - ${len(c.comments[cs.raw_id])} - - %endif + <% cs_comments = c.comments.get(cs.raw_id,[]) %> + % if cs_comments: + + ${len(cs_comments)} + + % else: + ${len(cs_comments)} + % endif %endfor