diff --git a/rhodecode/templates/changeset/changeset_file_comment.html b/rhodecode/templates/changeset/changeset_file_comment.html new file mode 100644 --- /dev/null +++ b/rhodecode/templates/changeset/changeset_file_comment.html @@ -0,0 +1,31 @@ +##usage: +## <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> +## ${comment.comment_block(co)} +## +<%def name="comment_block(co)"> +
+
+ + + ${co.author.username} + + ${_('commented on')} + ${h.short_id(co.commit_id)} + %if co.f_path: + ${_(' in file ')} + ${co.f_path}:L${co.line_no} + %endif + + ${h.age(co.modified_at)} + +
+
+ %if h.HasPermissionAny('hg.admin', 'repository.admin')() or co.author.user_id == c.rhodecode_user.user_id: + + %endif + ${h.rst(co.text)|n} +
+
+ \ No newline at end of file