# HG changeset patch # User Mads Kiilerich # Date 1386700237 -3600 # Node ID 1721c30d9cbead15ecf6bef714b53d3aa680491e # Parent cc9a7766d8bd8aa87d9de8a16c19c353a90b3b9f pull requests: don't filter PR comments in the template - the dataset is / must be correct diff -r cc9a7766d8bd -r 1721c30d9cbe kallithea/templates/changeset/changeset_file_comment.html --- a/kallithea/templates/changeset/changeset_file_comment.html Tue Dec 10 19:30:37 2013 +0100 +++ b/kallithea/templates/changeset/changeset_file_comment.html Tue Dec 10 19:30:37 2013 +0100 @@ -122,7 +122,7 @@ ## generate inline comments and the main ones -<%def name="generate_comments(include_pr=False)"> +<%def name="generate_comments()">
## generate inlines for this changeset @@ -131,11 +131,7 @@ %for co in c.comments:
- ## 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) or include_pr: ${comment_block(co)} - %endif
%endfor
diff -r cc9a7766d8bd -r 1721c30d9cbe kallithea/templates/pullrequests/pullrequest_show.html --- a/kallithea/templates/pullrequests/pullrequest_show.html Tue Dec 10 19:30:37 2013 +0100 +++ b/kallithea/templates/pullrequests/pullrequest_show.html Tue Dec 10 19:30:37 2013 +0100 @@ -220,7 +220,7 @@ ${comment.comment_inline_form()} ## render comments and inlines - ${comment.generate_comments(include_pr=True)} + ${comment.generate_comments()} % if not c.pull_request.is_closed(): ## main comment form and it status