files: don't expose copy content if this is a binary file
This commit is contained in:
parent
f34ef035b6
commit
de0032cf5d
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|<a href="#copySource" onclick="return false;" class="clipboard-action" data-clipboard-text="${c.file.content}">${_('Copy content')}</a>
|
||||
% endif
|
||||
|
||||
</div>
|
||||
<div class="clear-fix"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue