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:
Diffstat (limited to 'app/controllers/projects/artifacts_controller.rb')
-rw-r--r--app/controllers/projects/artifacts_controller.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb
index c1f406e3ba5..4524127e8e5 100644
--- a/app/controllers/projects/artifacts_controller.rb
+++ b/app/controllers/projects/artifacts_controller.rb
@@ -15,10 +15,8 @@ class Projects::ArtifactsController < Projects::ApplicationController
end
def browse
- path = params[:path].to_s
- @paths = artifacts_metadata.map do |_artifact_file|
- Gitlab::StringPath.new(path, artifacts_metadata)
- end
+ current_path = params[:path] ? "./#{params[:path]}/" : './'
+ @path = Gitlab::StringPath.new(current_path, artifacts_metadata)
end
private