diff options
Diffstat (limited to 'app/helpers/artifacts_helper.rb')
-rw-r--r-- | app/helpers/artifacts_helper.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/artifacts_helper.rb b/app/helpers/artifacts_helper.rb new file mode 100644 index 00000000000..df0432105d5 --- /dev/null +++ b/app/helpers/artifacts_helper.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module ArtifactsHelper + def artifacts_app_data(project) + { + project_path: project.full_path, + 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 |