# HG changeset patch # User Marcin Kuzminski # Date 2017-09-21 22:04:31 # Node ID 93ba9e953aafc2d23a141f8a70f551eea015706e # Parent 6cd52f8c7e8ca2bf23e11e9d24e16f059367dcfa gists: allow copy content to clipboard diff --git a/rhodecode/templates/admin/gists/show.mako b/rhodecode/templates/admin/gists/show.mako --- a/rhodecode/templates/admin/gists/show.mako +++ b/rhodecode/templates/admin/gists/show.mako @@ -52,6 +52,8 @@ %endif
## only owner should see that + ${_('Copy Content')} + %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id: ${h.link_to(_('Edit'), h.route_path('gist_edit', gist_id=c.gist.gist_access_id), class_="btn btn-mini")} %endif