Mercurial > kallithea
diff rhodecode/templates/changeset/changeset_file_comment.html @ 2608:58c529332e7e beta
Added option to close pull requests, in future that will be close & merge
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 15 Jul 2012 03:14:58 +0200 |
parents | a0adf8db1416 |
children | d5e42c00f3c1 |
line wrap: on
line diff
--- a/rhodecode/templates/changeset/changeset_file_comment.html Sun Jul 15 02:01:38 2012 +0200 +++ b/rhodecode/templates/changeset/changeset_file_comment.html Sun Jul 15 03:14:58 2012 +0200 @@ -92,9 +92,8 @@ </%def> -## MAIN COMMENT FORM -<%def name="comments(post_url, cur_status)"> - +## generate inline comments and the main ones +<%def name="generate_comments()"> <div class="comments"> <div id="inline-comments-container"> ## generate inlines for this changeset @@ -106,6 +105,13 @@ ${comment_block(co)} </div> %endfor +</div> +</%def> + +## MAIN COMMENT FORM +<%def name="comments(post_url, cur_status, close_btn=False)"> + +<div class="comments"> %if c.rhodecode_user.username != 'default': <div class="comment-form ac"> ${h.form(post_url)} @@ -129,7 +135,10 @@ ${h.textarea('text')} </div> <div class="comment-button"> - ${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 </div> ${h.end_form()} </div>