Commit 36e7b322 authored by Douwe Maan's avatar Douwe Maan

Download blob viewer is client-side

parent 7cc4546b
...@@ -75,7 +75,7 @@ module BlobViewer ...@@ -75,7 +75,7 @@ module BlobViewer
end end
def server_side_but_stored_in_lfs? def server_side_but_stored_in_lfs?
!client_side? && blob.valid_lfs_pointer? server_side? && blob.valid_lfs_pointer?
end end
end end
end end
module BlobViewer module BlobViewer
class Download < Base class Download < Base
include Simple include Simple
include ServerSide # We pretend the Download viewer is rendered client-side so that it doesn't
# attempt to load the entire blob contents.
include ClientSide
self.partial_name = 'download' self.partial_name = 'download'
self.text_based = false self.text_based = false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment