diff --git a/rhodecode/templates/admin/gists/show.html b/rhodecode/templates/admin/gists/show.html
--- a/rhodecode/templates/admin/gists/show.html
+++ b/rhodecode/templates/admin/gists/show.html
@@ -48,9 +48,11 @@
${c.gist.gist_description}
## only owner should see that
- %if c.gist.owner.username == c.rhodecode_user.username:
+ %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id:
##${h.link_to(_('Edit'),h.url(''),class_="ui-btn")}
- ##${h.link_to(_('Delete'),h.url(''),class_="ui-btn red")}
+ ${h.form(url('gist', id=c.gist.gist_id),method='delete')}
+ ${h.submit('remove_gist', _('Delete'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this gist')+"');")}
+ ${h.end_form()}
%endif