Mercurial > kallithea
diff rhodecode/templates/changeset/changeset_file_comment.html @ 1677:7276b170ce8b beta
#71 code-review
- simple inline comments
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 13 Nov 2011 02:16:12 +0200 |
parents | 7c487d2678c7 |
children | aa6a1c6f2ac5 |
line wrap: on
line diff
--- a/rhodecode/templates/changeset/changeset_file_comment.html Sat Nov 12 20:24:07 2011 +0200 +++ b/rhodecode/templates/changeset/changeset_file_comment.html Sun Nov 13 02:16:12 2011 +0200 @@ -13,7 +13,7 @@ ${h.short_id(co.revision)} %if co.f_path: ${_(' in file ')} - ${co.f_path}:L${co.line_no} + ${co.f_path}:L ${co.line_no} %endif <span class="date"> ${h.age(co.modified_at)} @@ -28,4 +28,25 @@ ${h.rst(co.text)|n} </div> </div> +</%def> + + + +<%def name="comment_inline_form()"> +<div id='comment-inline-form-template' style="display:none"> + <div class="comment-inline-form"> + ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=c.changeset.raw_id))} + <div class="clearfix"> + <div class="comment-help">${_('Commenting on line')} {1} ${_('comments parsed using RST syntax')}</div> + ${h.textarea('text')} + </div> + <div class="comment-button"> + <input type="hidden" name="f_path" value="{0}"> + <input type="hidden" name="line" value="{1}"> + ${h.submit('save', _('Comment'), class_='ui-button-small')} + ${h.reset('hide-inline-form', _('Hide'), class_='ui-button-small hide-inline-form')} + </div> + ${h.end_form()} + </div> +</div> </%def> \ No newline at end of file