on_demand_scans_helper.rb 792 Bytes
Newer Older
1 2 3
# frozen_string_literal: true

module Projects::OnDemandScansHelper
4
  def on_demand_scans_data(project)
5 6
    {
      'help-page-path' => help_page_path('user/application_security/dast/index', anchor: 'on-demand-scans'),
7 8
      'empty-state-svg-path' => image_path('illustrations/empty-state/ondemand-scan-empty.svg'),
      'default-branch' => project.default_branch,
9
      'project-path' => project.path_with_namespace,
10 11 12
      'scanner-profiles-library-path' => project_profiles_path(project, anchor: 'scanner-profiles'),
      'site-profiles-library-path' => project_profiles_path(project, anchor: 'site-profiles'),
      'new-scanner-profile-path' => new_project_dast_scanner_profile_path(project),
13
      'new-site-profile-path' => new_project_dast_site_profile_path(project)
14 15 16
    }
  end
end