2020-12-14 07:09:44 -05:00
|
|
|
- add_page_specific_style 'page_bundles/import'
|
2021-05-24 14:10:28 -04:00
|
|
|
- provider = local_assigns.fetch(:provider).to_sym
|
2020-06-15 11:08:20 -04:00
|
|
|
- extra_data = local_assigns.fetch(:extra_data, {})
|
|
|
|
- filterable = local_assigns.fetch(:filterable, true)
|
2020-08-17 17:09:56 -04:00
|
|
|
- paginatable = local_assigns.fetch(:paginatable, false)
|
2016-12-16 04:47:26 -05:00
|
|
|
- provider_title = Gitlab::ImportSources.title(provider)
|
|
|
|
|
2021-06-07 14:10:23 -04:00
|
|
|
- header_title _("New project"), new_project_path
|
2021-09-21 11:12:11 -04:00
|
|
|
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project')
|
2021-06-07 14:10:23 -04:00
|
|
|
|
2018-11-07 11:44:21 -05:00
|
|
|
#import-projects-mount-element{ data: { provider: provider, provider_title: provider_title,
|
|
|
|
can_select_namespace: current_user.can_select_namespace?.to_s,
|
|
|
|
ci_cd_only: has_ci_cd_only_params?.to_s,
|
2020-08-17 08:10:12 -04:00
|
|
|
namespaces_path: import_available_namespaces_path,
|
2018-11-07 11:44:21 -05:00
|
|
|
repos_path: url_for([:status, :import, provider, format: :json]),
|
|
|
|
jobs_path: url_for([:realtime_changes, :import, provider, format: :json]),
|
2020-06-15 11:08:20 -04:00
|
|
|
import_path: url_for([:import, provider, format: :json]),
|
2020-08-17 17:09:56 -04:00
|
|
|
filterable: filterable.to_s,
|
|
|
|
paginatable: paginatable.to_s }.merge(extra_data) }
|