diff rhodecode/templates/changeset/changeset_file_comment.html @ 3200:89931a504fcf beta

remove comments associated to pull request from single changesets, it's too confusing. Left are only ones that are status change so we can indicate where the status of this changeset came from
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 23 Jan 2013 20:54:05 +0100
parents b4f401524060
children 81bbb8086f03
line wrap: on
line diff
--- a/rhodecode/templates/changeset/changeset_file_comment.html	Wed Jan 23 20:22:08 2013 +0100
+++ b/rhodecode/templates/changeset/changeset_file_comment.html	Wed Jan 23 20:54:05 2013 +0100
@@ -117,7 +117,11 @@
 
     %for co in c.comments:
         <div id="comment-tr-${co.comment_id}">
+          ## only render comments that are not from pull request, or from
+          ## pull request and a status change
+          %if not co.pull_request or co.pull_request and co.status_change:
           ${comment_block(co)}
+          %endif
         </div>
     %endfor
 </div>