# HG changeset patch # User Marcin Kuzminski # Date 1359231671 -3600 # Node ID aad51f79d040435199ce83fa90bb971054b608e8 # Parent ba2e2514a01a53f6e8af014540135c76956eb7b6 added a flag for generating pull-request comments, and force display on pull-requests diff -r ba2e2514a01a -r aad51f79d040 rhodecode/templates/changeset/changeset_file_comment.html --- a/rhodecode/templates/changeset/changeset_file_comment.html Sat Jan 26 20:11:55 2013 +0100 +++ b/rhodecode/templates/changeset/changeset_file_comment.html Sat Jan 26 21:21:11 2013 +0100 @@ -108,7 +108,7 @@ ## generate inline comments and the main ones -<%def name="generate_comments()"> +<%def name="generate_comments(include_pr=False)">
## generate inlines for this changeset @@ -119,7 +119,7 @@
## 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: + %if not co.pull_request or (co.pull_request and co.status_change) or include_pr: ${comment_block(co)} %endif
diff -r ba2e2514a01a -r aad51f79d040 rhodecode/templates/pullrequests/pullrequest_show.html --- a/rhodecode/templates/pullrequests/pullrequest_show.html Sat Jan 26 20:11:55 2013 +0100 +++ b/rhodecode/templates/pullrequests/pullrequest_show.html Sat Jan 26 21:21:11 2013 +0100 @@ -177,7 +177,7 @@ ${comment.comment_inline_form()} ## render comments and inlines - ${comment.generate_comments()} + ${comment.generate_comments(include_pr=True)} % if not c.pull_request.is_closed(): ## main comment form and it status