Commit 933cfe1e authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Add environment instance var to BlobController#show html resp

parent c854460e
......@@ -39,6 +39,9 @@ class Projects::BlobController < Projects::ApplicationController
respond_to do |format|
format.html do
assign_ref_vars
environment_params = @repository.branch_exists?(@ref) ? { ref: @ref } : { commit: @commit }
@environment = EnvironmentsFinder.new(@project, current_user, environment_params).execute.last
@last_commit = @repository.last_commit_for_path(@commit.id, tree.path) || @commit
show_new_repo? ? render('projects/tree/show') : render('show')
......
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