diff --git a/rhodecode/templates/changeset/changeset.html b/rhodecode/templates/changeset/changeset.html --- a/rhodecode/templates/changeset/changeset.html +++ b/rhodecode/templates/changeset/changeset.html @@ -114,89 +114,17 @@ - - %for change,filenode,diff,cs1,cs2,stat in c.changes: - %if change !='removed': -
-
-
-
-
- ${h.link_to_if(change!='removed',h.safe_unicode(filenode.path),h.url('files_home',repo_name=c.repo_name, - revision=filenode.changeset.raw_id,f_path=h.safe_unicode(filenode.path)))} -
-
- diff-menu - -
- - - -
-
-
-
- %if diff: - ${diff|n} - %else: - ${_('No changes in this file')} - %endif -
-
- %endif - %endfor - + + ## diff block + <%namespace name="diff_block" file="/changeset/diff_block.html"/> + ${diff_block.diff_block(c.changes)} + + ## template for inline comment form <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> - ## template for inline comment form - ${comment.comment_inline_form()} + ${comment.comment_inline_form(c.changeset)} -
-
${len(c.comments)} comment(s) (${c.inline_cnt} ${_('inline')})
- - %for path, lines in c.inline_comments: - - %endfor - - %for co in c.comments: - ${comment.comment_block(co)} - %endfor - %if c.rhodecode_user.username != 'default': -
- ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=c.changeset.raw_id))} - ${_('Leave a comment')} -
-
- ${_('Comments parsed using')} RST ${_('syntax')} - ${_('with')} @mention ${_('support')} -
- ${h.textarea('text')} -
-
- ${h.submit('save', _('Comment'), class_='ui-button')} -
- ${h.end_form()} -
- %endif -
+ ${comment.comments(c.changeset)} + - + + +