diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-13 11:57:43 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-27 12:23:26 -0500 |
commit | 0d1ec11e8974b38b0d749a08fde2817c61326441 (patch) | |
tree | acecd60b7c7cd90fea299d788aab739645b0e77f /app/views/notify | |
parent | 5cb27e9fa74c7234195e10ade933e8a475cff403 (diff) | |
download | gitlab-ce-0d1ec11e8974b38b0d749a08fde2817c61326441.tar.gz |
Use Blob methods instead of BlobHelper helpers
Diffstat (limited to 'app/views/notify')
-rw-r--r-- | app/views/notify/repository_push_email.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/notify/repository_push_email.html.haml b/app/views/notify/repository_push_email.html.haml index c6b1db17f91..36512533c58 100644 --- a/app/views/notify/repository_push_email.html.haml +++ b/app/views/notify/repository_push_email.html.haml @@ -74,7 +74,7 @@ - else %hr - blob = diff_file.blob - - if blob && blob.respond_to?(:text?) && blob_text_viewable?(blob) + - if blob && blob.respond_to?(:text?) && blob.readable_text? %table.code.white = render partial: "projects/diffs/line", collection: diff_file.highlighted_diff_lines, as: :line, locals: { diff_file: diff_file, plain: true, email: true } - else |