render blob/show if not show_new_repo?
This commit is contained in:
parent
98003eade2
commit
2a6f1b32dd
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue