summaryrefslogtreecommitdiff
path: root/app/helpers/artifacts_helper.rb
blob: f90d59409ed4308ee1ca82b124489fbe718cc996 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module ArtifactsHelper
  def artifacts_app_data(project)
    {
      project_path: project.full_path,
      project_id: project.id,
      can_destroy_artifacts: can?(current_user, :destroy_artifacts, project).to_s,
      artifacts_management_feedback_image_path: image_path('illustrations/chat-bubble-sm.svg')
    }
  end
end