diff --git a/rhodecode/templates/changeset/changeset_file_comment.html b/rhodecode/templates/changeset/changeset_file_comment.html --- a/rhodecode/templates/changeset/changeset_file_comment.html +++ b/rhodecode/templates/changeset/changeset_file_comment.html @@ -92,9 +92,8 @@ -## MAIN COMMENT FORM -<%def name="comments(post_url, cur_status)"> - +## generate inline comments and the main ones +<%def name="generate_comments()">
## generate inlines for this changeset @@ -106,6 +105,13 @@ ${comment_block(co)}
%endfor +
+ + +## MAIN COMMENT FORM +<%def name="comments(post_url, cur_status, close_btn=False)"> + +
%if c.rhodecode_user.username != 'default':
${h.form(post_url)} @@ -129,7 +135,10 @@ ${h.textarea('text')}
- ${h.submit('save', _('Comment'), class_='ui-button')} + ${h.submit('save', _('Comment'), class_="ui-btn large")} + %if close_btn: + ${h.submit('save_close', _('Comment and close'), class_='ui-btn blue large')} + %endif
${h.end_form()}