Module: ArtifactsHelper

Defined in:
app/helpers/artifacts_helper.rb

Instance Method Summary collapse

Instance Method Details

#artifacts_app_data(project) ⇒ Object



4
5
6
7
8
9
10
11
# File 'app/helpers/artifacts_helper.rb', line 4

def artifacts_app_data(project)
  {
    project_path: project.full_path,
    project_id: project.id,
    can_destroy_artifacts: can?(current_user, :delete_job_artifact, project).to_s,
    job_artifacts_count_limit: ::Ci::JobArtifacts::BulkDeleteByProjectService::JOB_ARTIFACTS_COUNT_LIMIT
  }
end