# HG changeset patch # User Marcin Kuzminski # Date 2019-11-06 13:25:59 # Node ID 0ec5af71cad117f55a1ff9dc53bb52d36a62366d # Parent 34d7ca1947c8f7377d92179c88a2c7151b2efa2f files: don't expose copy content if this is a binary file diff --git a/rhodecode/templates/files/files_source.mako b/rhodecode/templates/files/files_source.mako --- a/rhodecode/templates/files/files_source.mako +++ b/rhodecode/templates/files/files_source.mako @@ -102,7 +102,9 @@ ${h.link_to(_('Annotation'), h.route_path('repo_files:annotated',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} %endif | ${h.link_to(_('Raw'), h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} + % if not c.file.is_binary: |${_('Copy content')} + % endif