debian-mirror-gitlab/app/helpers/artifacts_helper.rb
2023-05-27 22:25:52 +05:30

12 lines
357 B
Ruby

# 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