diff options
Diffstat (limited to 'app/controllers/projects/artifacts_controller.rb')
-rw-r--r-- | app/controllers/projects/artifacts_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb index 2ef18d900f2..2f7025d44fc 100644 --- a/app/controllers/projects/artifacts_controller.rb +++ b/app/controllers/projects/artifacts_controller.rb @@ -5,7 +5,7 @@ class Projects::ArtifactsController < Projects::ApplicationController include RendersBlob include SendFileUpload - layout 'project' + layout "project" before_action :authorize_read_build! before_action :authorize_update_build!, only: [:keep] before_action :extract_ref_name_and_path @@ -20,7 +20,7 @@ class Projects::ArtifactsController < Projects::ApplicationController def browse @path = params[:path] - directory = @path ? "#{@path}/" : '' + directory = @path ? "#{@path}/" : "" @entry = build.artifacts_metadata_entry(directory) render_404 unless @entry.exists? @@ -35,7 +35,7 @@ class Projects::ArtifactsController < Projects::ApplicationController else respond_to do |format| format.html do - render 'file' + render "file" end format.json do |