debian-mirror-gitlab/app/helpers/artifacts_helper.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
357 B
Ruby
Raw Normal View History

2023-04-23 21:23:45 +05:30
# frozen_string_literal: true
module ArtifactsHelper
def artifacts_app_data(project)
{
project_path: project.full_path,
2023-05-27 22:25:52 +05:30
project_id: project.id,
2023-04-23 21:23:45 +05:30
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