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 @@ -77,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(): @@ -92,11 +93,12 @@ ## MAIN COMMENT FORM -<%def name="comments(changeset)"> +<%def name="comments(post_url, cur_status)">
- ${inlines(changeset)} + ## generate inlines for this changeset + ${inlines()}
%for co in c.comments: @@ -106,7 +108,7 @@ %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')}
@@ -120,7 +122,7 @@ @@ -137,6 +139,17 @@