Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-28 21:40:12 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-28 21:40:12 +0300
commit2a6f1b32ddd5d371c24a09afb36b130acbaa53b8 (patch)
treeb93fbb9fbfde006511e6d54d7ea73811b0e1b2ee /app/controllers/projects
parent98003eade2add466f1cce6ab80a8936cfdc2c3af (diff)
render blob/show if not show_new_repo?
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/blob_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb
index 4346ef8de02..fee74725d6c 100644
--- a/app/controllers/projects/blob_controller.rb
+++ b/app/controllers/projects/blob_controller.rb
@@ -4,6 +4,7 @@ class Projects::BlobController < Projects::ApplicationController
include CreatesCommit
include RendersBlob
include ActionView::Helpers::SanitizeHelper
+ include ApplicationHelper
# Raised when given an invalid file path
InvalidPathError = Class.new(StandardError)
@@ -40,7 +41,7 @@ class Projects::BlobController < Projects::ApplicationController
assign_ref_vars
@last_commit = @repository.last_commit_for_path(@commit.id, tree.path) || @commit
- render 'projects/tree/show'
+ show_new_repo? ? render('projects/tree/show') : render('show')
end
format.json do