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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
869668c9
Commit
869668c9
authored
Aug 03, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add render_error to blob JSON
parent
0c4b369c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/controllers/projects/blob_controller.rb
app/controllers/projects/blob_controller.rb
+2
-1
No files found.
app/controllers/projects/blob_controller.rb
View file @
869668c9
...
...
@@ -58,10 +58,11 @@ class Projects::BlobController < Projects::ApplicationController
simple_viewer:
blob
.
simple_viewer
&
.
class
&
.
partial_name
,
rich_viewer:
blob
.
rich_viewer
&
.
class
&
.
partial_name
,
show_viewer_switcher:
!!
blob
.
show_viewer_switcher?
,
render_error:
blob
.
simple_viewer
&
.
render_error
||
blob
.
rich_viewer
&
.
render_error
,
raw_path:
project_raw_path
(
project
,
@id
),
blame_path:
project_blame_path
(
project
,
@id
),
commits_path:
project_commits_path
(
project
,
@id
),
permalink:
project_blob_path
(
project
,
File
.
join
(
@commit
.
id
,
@path
))
,
permalink:
project_blob_path
(
project
,
File
.
join
(
@commit
.
id
,
@path
))
)
end
end
...
...
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