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 @@ -7,17 +7,24 @@
- - +
+
${co.author.username} - - +
+
${h.age(co.modified_at)} - +
+ %if co.status_change: +
+
+
${co.status_change.status_lbl}
+
+
+ %endif %if h.HasPermissionAny('hg.admin', 'repository.admin')() or co.author.user_id == c.rhodecode_user.user_id: - +
${_('Delete')} - +
%endif
@@ -70,7 +77,8 @@ -<%def name="inlines(changeset)"> +## generates inlines taken from c.comments var +<%def name="inlines()">
${ungettext("%d comment", "%d comments", len(c.comments)) % len(c.comments)} ${ungettext("(%d inline)", "(%d inline)", c.inline_cnt) % c.inline_cnt}
%for path, lines in c.inline_comments: % for line,comments in lines.iteritems(): @@ -84,11 +92,13 @@ -<%def name="comments(changeset)"> +## MAIN COMMENT FORM +<%def name="comments(post_url, cur_status)">
- ${inlines(changeset)} + ## generate inlines for this changeset + ${inlines()}
%for co in c.comments: @@ -98,16 +108,26 @@ %endfor %if c.rhodecode_user.username != 'default':
- ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=changeset.raw_id))} + ${h.form(post_url)} ${_('Leave a comment')}
${(_('Comments parsed using %s syntax with %s support.') % (('RST' % h.url('rst_help')), '@mention' % _('Use @username inside this text to send notification to this RhodeCode user')))|n} + | ${_('change status')} + +
-
- ${h.textarea('text')} + +
+ ${h.textarea('text')}
${h.submit('save', _('Comment'), class_='ui-button')} @@ -119,6 +139,17 @@