2016-05-03 09:09:28 -04:00
- page_title "GitLab Import"
2016-04-26 04:59:00 -04:00
- header_title "Projects", root_path
2017-08-07 06:09:50 -04:00
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'project_import_gl'
2016-04-26 04:59:00 -04:00
%h3.page-title
2016-06-13 14:35:57 -04:00
= icon('gitlab')
2016-06-15 11:31:00 -04:00
Import an exported GitLab project
2016-04-26 04:59:00 -04:00
%hr
2017-08-07 13:51:30 -04:00
= form_tag import_gitlab_project_path, class: 'new_project', multipart: true do
2017-08-01 12:00:55 -04:00
.row
.form-group.col-xs-12.col-sm-6
2017-08-07 13:51:30 -04:00
= label_tag :namespace_id, 'Project path', class: 'label-light'
2017-08-01 12:00:55 -04:00
.form-group
.input-group
- if current_user.can_select_namespace?
.input-group-addon
= root_url
2017-08-07 13:24:40 -04:00
= select_tag :namespace_id, namespaces_options(namespace_id_from(params) || :current_user, display_path: true, extra_group: namespace_id_from(params)), class: 'select2 js-select-namespace', tabindex: 1
2016-06-13 14:35:57 -04:00
2017-08-01 12:00:55 -04:00
- else
.input-group-addon.static-namespace
#{root_url}#{current_user.username}/
2017-08-07 13:24:40 -04:00
= hidden_field_tag :namespace_id, value: current_user.namespace_id
2017-08-01 12:00:55 -04:00
.form-group.col-xs-12.col-sm-6.project-path
2017-08-07 13:24:40 -04:00
= label_tag :path, 'Project name', class: 'label-light'
2017-08-21 11:50:34 -04:00
= text_field_tag :path, @path, placeholder: "my-awesome-project", class: "js-path-name form-control", tabindex: 2, autofocus: true, required: true
2017-08-01 12:00:55 -04:00
.row
.form-group.col-md-12
To move or copy an entire GitLab project from another GitLab installation to this one, navigate to the original project's settings page, generate an export file, and upload it here.
.row
.form-group.col-sm-12
= hidden_field_tag :namespace_id, @namespace.id
2017-08-07 13:24:40 -04:00
= label_tag :file, 'GitLab project export', class: 'label-light'
2017-08-01 12:00:55 -04:00
.form-group
= file_field_tag :file, class: ''
.row
.form-actions
2017-08-07 13:24:40 -04:00
= submit_tag 'Import project', class: 'btn btn-create'
2017-08-01 12:00:55 -04:00
= link_to 'Cancel', new_project_path, class: 'btn btn-cancel'