summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-13 12:13:31 -0500
committerDouwe Maan <douwe@selenight.nl>2017-04-27 12:23:26 -0500
commit30db305dcedfe23635f9fd779a59746fdd5f2e61 (patch)
tree01a5279dd1535537292b8125fd598c7de80a1ab3 /app/views/projects
parent0d1ec11e8974b38b0d749a08fde2817c61326441 (diff)
downloadgitlab-ce-30db305dcedfe23635f9fd779a59746fdd5f2e61.tar.gz
Move conditional inside copy_blob_source_button
Diffstat (limited to 'app/views/projects')
-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 81fd8e5792b..bb8a53aca6e 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_rendered_as_text?(blob)
+ = copy_blob_source_button(blob) unless blame
= open_raw_file_button(namespace_project_raw_path(@project.namespace, @project, @id))
= view_on_environment_button(@commit.sha, @path, @environment) if @environment