debian-mirror-gitlab/app/views/import/google_code/new.html.haml

64 lines
3.2 KiB
Text
Raw Normal View History

2018-11-18 11:00:15 +05:30
- page_title _("Google Code import")
- header_title _("Projects"), root_path
2021-01-03 14:25:43 +05:30
%h3.page-title.gl-display-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('google', css_class: 'gl-mr-2')
2018-11-18 11:00:15 +05:30
= _('Import projects from Google Code')
2015-04-26 12:48:37 +05:30
%hr
2018-11-08 19:23:39 +05:30
= form_tag callback_import_google_code_path, multipart: true do
2015-04-26 12:48:37 +05:30
%p
2018-11-18 11:00:15 +05:30
= _('Follow the steps below to export your Google Code project data.')
= _("In the next step, you'll be able to select the projects you want to import.")
2015-04-26 12:48:37 +05:30
%ol
%li
%p
2018-11-18 11:00:15 +05:30
- link_to_google_takeout = link_to(_("Google Takeout"), "https://www.google.com/settings/takeout", target: '_blank', rel: 'noopener noreferrer')
= _("Go to %{link_to_google_takeout}.").html_safe % { link_to_google_takeout: link_to_google_takeout }
2015-04-26 12:48:37 +05:30
%li
%p
2018-11-18 11:00:15 +05:30
= _("Make sure you're logged into the account that owns the projects you'd like to import.")
2015-04-26 12:48:37 +05:30
%li
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('Click the %{strong_open}Select none%{strong_close} button on the right, since we only need "Google Code Project Hosting".')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
2015-04-26 12:48:37 +05:30
%li
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('Scroll down to %{strong_open}Google Code Project Hosting%{strong_close} and enable the switch on the right.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
2015-04-26 12:48:37 +05:30
%li
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('Choose %{strong_open}Next%{strong_close} at the bottom of the page.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
2015-04-26 12:48:37 +05:30
%li
%p
2018-11-18 11:00:15 +05:30
= _('Leave the "File type" and "Delivery method" options on their default values.')
2015-04-26 12:48:37 +05:30
%li
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('Choose %{strong_open}Create archive%{strong_close} and wait for archiving to complete.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
2015-04-26 12:48:37 +05:30
%li
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('Click the %{strong_open}Download%{strong_close} button and wait for downloading to complete.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
2015-04-26 12:48:37 +05:30
%li
%p
2018-11-18 11:00:15 +05:30
= _('Find the downloaded ZIP file and decompress it.')
2015-04-26 12:48:37 +05:30
%li
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('Find the newly extracted %{code_open}Takeout/Google Code Project Hosting/GoogleCodeProjectHosting.json%{code_close} file.')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2015-04-26 12:48:37 +05:30
%li
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('Upload %{code_open}GoogleCodeProjectHosting.json%{code_close} here:')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2015-04-26 12:48:37 +05:30
%p
2017-08-17 22:00:37 +05:30
%input{ type: "file", name: "dump_file", id: "dump_file" }
2015-04-26 12:48:37 +05:30
%li
%p
2018-11-18 11:00:15 +05:30
= _('Do you want to customize how Google Code email addresses and usernames are imported into GitLab?')
2015-04-26 12:48:37 +05:30
%p
= label_tag :create_user_map_0 do
= radio_button_tag :create_user_map, 0, true
2018-11-18 11:00:15 +05:30
= _('No, directly import the existing email addresses and usernames.')
2015-04-26 12:48:37 +05:30
%p
= label_tag :create_user_map_1 do
= radio_button_tag :create_user_map, 1, false
2018-11-18 11:00:15 +05:30
= _('Yes, let me map Google Code users to full names or GitLab users.')
2020-10-24 23:57:45 +05:30
%span
= submit_tag _('Continue to the next step'), class: "btn btn-success"