2021-02-22 17:27:13 +05:30
|
|
|
- add_page_specific_style 'page_bundles/import'
|
2021-07-02 01:05:55 +05:30
|
|
|
- provider = local_assigns.fetch(:provider).to_sym
|
2020-06-23 00:09:42 +05:30
|
|
|
- extra_data = local_assigns.fetch(:extra_data, {})
|
|
|
|
- filterable = local_assigns.fetch(:filterable, true)
|
2020-10-24 23:57:45 +05:30
|
|
|
- paginatable = local_assigns.fetch(:paginatable, false)
|
2022-06-21 17:19:12 +05:30
|
|
|
- default_namespace_path = (local_assigns[:default_namespace] || current_user.namespace).full_path
|
2023-03-04 22:38:38 +05:30
|
|
|
- cancel_path = local_assigns.fetch(:cancel_path, nil)
|
2023-01-13 00:05:48 +05:30
|
|
|
- provider_title = Gitlab::ImportSources.title(local_assigns.fetch(:provider))
|
2022-11-25 23:54:43 +05:30
|
|
|
- optional_stages = local_assigns.fetch(:optional_stages, [])
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2021-09-04 01:27:46 +05:30
|
|
|
- header_title _("New project"), new_project_path
|
2021-11-18 22:05:49 +05:30
|
|
|
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project')
|
2021-09-04 01:27:46 +05:30
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
#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,
|
2022-08-27 11:52:29 +05:30
|
|
|
repos_path: url_for([:status, :import, provider, { format: :json }]),
|
|
|
|
jobs_path: url_for([:realtime_changes, :import, provider, { format: :json }]),
|
2022-06-21 17:19:12 +05:30
|
|
|
default_target_namespace: default_namespace_path,
|
2022-08-27 11:52:29 +05:30
|
|
|
import_path: url_for([:import, provider, { format: :json }]),
|
2023-03-04 22:38:38 +05:30
|
|
|
cancel_path: cancel_path,
|
2020-10-24 23:57:45 +05:30
|
|
|
filterable: filterable.to_s,
|
2022-11-25 23:54:43 +05:30
|
|
|
paginatable: paginatable.to_s,
|
|
|
|
optional_stages: optional_stages.to_json }.merge(extra_data) }
|