Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
36e7b322
Commit
36e7b322
authored
Apr 20, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Download blob viewer is client-side
parent
7cc4546b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/models/blob_viewer/base.rb
app/models/blob_viewer/base.rb
+1
-1
app/models/blob_viewer/download.rb
app/models/blob_viewer/download.rb
+3
-1
No files found.
app/models/blob_viewer/base.rb
View file @
36e7b322
...
...
@@ -75,7 +75,7 @@ module BlobViewer
end
def
server_side_but_stored_in_lfs?
!
client
_side?
&&
blob
.
valid_lfs_pointer?
server
_side?
&&
blob
.
valid_lfs_pointer?
end
end
end
app/models/blob_viewer/download.rb
View file @
36e7b322
module
BlobViewer
class
Download
<
Base
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
.
text_based
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment