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 @@ -11,22 +11,16 @@ ${co.author.username} - ${_('commented on')} - ${h.short_id(co.revision)} - %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: + + ${_('Delete')} + + %endif
- %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}