## -*- coding: utf-8 -*- ## usage: ## <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> ## ${comment.comment_block(co)} ## <%def name="comment_block(co)">
${co.author.username} ${h.age(co.modified_at)} %if h.HasPermissionAny('hg.admin', 'repository.admin')() or co.author.user_id == c.rhodecode_user.user_id: ${_('Delete')} %endif
${h.rst_w_mentions(co.text)|n}
<%def name="comment_inline_form(changeset)"> <%def name="inlines(changeset)">
${len(c.comments)} comment(s) (${c.inline_cnt} ${_('inline')})
%for path, lines in c.inline_comments: % for line,comments in lines.iteritems(): %endfor %endfor ## MAIN COMMENT FORM <%def name="comments(changeset)">
${inlines(changeset)}
%for co in c.comments:
${comment_block(co)}
%endfor %if c.rhodecode_user.username != 'default':
${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=changeset.raw_id))} ${_('Leave a comment')}
${_('Comments parsed using')} RST ${_('syntax')} ${_('with')} @mention ${_('support')} | ${_('change status')}
${h.textarea('text')}
${h.submit('save', _('Comment'), class_='ui-button')}
${h.end_form()}
%endif