summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/_header.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-04-10 21:23:19 +0000
committerRobert Speicher <robert@gitlab.com>2017-04-10 21:23:19 +0000
commitfb8a12c8fea422a9054fcbdb2e6b22770e9dfab3 (patch)
treedd8b86df7d03857238a994683a6b7f5014208570 /app/views/projects/blob/_header.html.haml
parent520ed0781cc86f3c158b3ebcfb2457dba3b41a6e (diff)
downloadgitlab-ce-fb8a12c8fea422a9054fcbdb2e6b22770e9dfab3.tar.gz
Don't show 'Copy content' button on text files that are not rendered as text
Diffstat (limited to 'app/views/projects/blob/_header.html.haml')
-rw-r--r--app/views/projects/blob/_header.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/_header.html.haml b/app/views/projects/blob/_header.html.haml
index 6c7d389e707..c42bf3c324a 100644
--- a/app/views/projects/blob/_header.html.haml
+++ b/app/views/projects/blob/_header.html.haml
@@ -13,7 +13,7 @@
.file-actions.hidden-xs
.btn-group{ role: "group" }<
- = copy_blob_content_button(blob) if !blame && blob_text_viewable?(blob)
+ = copy_blob_content_button(blob) if !blame && blob_rendered_as_text?(blob)
= open_raw_file_button(namespace_project_raw_path(@project.namespace, @project, @id))
= view_on_environment_button(@commit.sha, @path, @environment) if @environment