##// END OF EJS Templates
added a flag for generating pull-request comments, and force display on pull-requests
marcink -
r3229:aad51f79 beta
parent child Browse files
Show More
@@ -108,7 +108,7 b''
108 108 </%def>
109 109
110 110 ## generate inline comments and the main ones
111 <%def name="generate_comments()">
111 <%def name="generate_comments(include_pr=False)">
112 112 <div class="comments">
113 113 <div id="inline-comments-container">
114 114 ## generate inlines for this changeset
@@ -119,7 +119,7 b''
119 119 <div id="comment-tr-${co.comment_id}">
120 120 ## only render comments that are not from pull request, or from
121 121 ## pull request and a status change
122 %if not co.pull_request or co.pull_request and co.status_change:
122 %if not co.pull_request or (co.pull_request and co.status_change) or include_pr:
123 123 ${comment_block(co)}
124 124 %endif
125 125 </div>
@@ -177,7 +177,7 b''
177 177 ${comment.comment_inline_form()}
178 178
179 179 ## render comments and inlines
180 ${comment.generate_comments()}
180 ${comment.generate_comments(include_pr=True)}
181 181
182 182 % if not c.pull_request.is_closed():
183 183 ## main comment form and it status
General Comments 0
You need to be logged in to leave comments. Login now