summaryrefslogtreecommitdiff
path: root/app/helpers/blob_helper.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-08 18:58:54 -0500
committerDouwe Maan <douwe@selenight.nl>2017-05-09 11:35:52 -0500
commit5a1e159b7ba097ad083416b8bc64bec1228097fe (patch)
treed6ff91cdfae72ec5f5cd68832ab52e53bc6b17d9 /app/helpers/blob_helper.rb
parentf59a44dbdf616d29e0185090a1401a6706aef33f (diff)
downloadgitlab-ce-5a1e159b7ba097ad083416b8bc64bec1228097fe.tar.gz
Make tree, blob and blame pages more consistent
Diffstat (limited to 'app/helpers/blob_helper.rb')
-rw-r--r--app/helpers/blob_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb
index af430270ae4..eb37f2e0267 100644
--- a/app/helpers/blob_helper.rb
+++ b/app/helpers/blob_helper.rb
@@ -18,7 +18,7 @@ module BlobHelper
blob = options.delete(:blob)
blob ||= project.repository.blob_at(ref, path) rescue nil
- return unless blob
+ return unless blob && blob.readable_text?
common_classes = "btn js-edit-blob #{options[:extra_class]}"