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 @@ -44,8 +44,8 @@ %endif - %if h.HasPermissionAny('hg.admin', 'repository.admin')() or co.author.user_id == c.rhodecode_user.user_id: -
${_('Delete')}
+ %if h.HasPermissionAny('hg.admin')() or h.HasRepoPermissionAny('repository.admin')(c.repo_name) or co.author.user_id == c.rhodecode_user.user_id: +
${_('Delete')}
%endif
@@ -70,7 +70,7 @@ ) )|n } -
${_('Preview')}
+
${_('Preview')}
@@ -78,15 +78,15 @@
- ${h.submit('save', _('Comment'), class_='ui-btn save-inline-form')} - ${h.reset('hide-inline-form', _('Cancel'), class_='ui-btn hide-inline-form')} + ${h.submit('save', _('Comment'), class_='btn btn-small save-inline-form')} + ${h.reset('hide-inline-form', _('Cancel'), class_='btn btn-small hide-inline-form')}
${h.end_form()} %else: @@ -97,7 +97,7 @@
- ${h.reset('hide-inline-form', _('Hide'), class_='ui-btn hide-inline-form')} + ${h.reset('hide-inline-form', _('Hide'), class_='btn btn-small hide-inline-form')}
${h.end_form()} %endif @@ -163,13 +163,14 @@ %endif -
${_('Preview')}
+
${_('Preview')}
%if change_status: