summaryrefslogtreecommitdiff
path: root/app/views/import/google_code/new.html.haml
blob: fd6e4726fc5d0119ac245b66cdcdd4f0d876398e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
- page_title _("Google Code import")
- header_title _("Projects"), root_path
%h3.page-title
  %i.fa.fa-google
  = _('Import projects from Google Code')
%hr

= form_tag callback_import_google_code_path, multipart: true do
  %p
    = _('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.")
  %ol
    %li
      %p
        - 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 }
    %li
      %p
        = _("Make sure you're logged into the account that owns the projects you'd like to import.")
    %li
      %p
        = _('Click the <strong>Select none</strong> button on the right, since we only need "Google Code Project Hosting".').html_safe
    %li
      %p
        = _('Scroll down to <strong>Google Code Project Hosting</strong> and enable the switch on the right.').html_safe
    %li
      %p
        = _('Choose <strong>Next</strong> at the bottom of the page.').html_safe
    %li
      %p
        = _('Leave the "File type" and "Delivery method" options on their default values.')
    %li
      %p
        = _('Choose <strong>Create archive</strong> and wait for archiving to complete.').html_safe
    %li
      %p
        = _('Click the <strong>Download</strong> button and wait for downloading to complete.').html_safe
    %li
      %p
        = _('Find the downloaded ZIP file and decompress it.')
    %li
      %p
        = _('Find the newly extracted <code>Takeout/Google Code Project Hosting/GoogleCodeProjectHosting.json</code> file.').html_safe
    %li
      %p
        = _('Upload <code>GoogleCodeProjectHosting.json</code> here:').html_safe
      %p
        %input{ type: "file", name: "dump_file", id: "dump_file" }
    %li
      %p
        = _('Do you want to customize how Google Code email addresses and usernames are imported into GitLab?')
      %p
        = label_tag :create_user_map_0 do
          = radio_button_tag :create_user_map, 0, true
          = _('No, directly import the existing email addresses and usernames.')
      %p
        = label_tag :create_user_map_1 do
          = radio_button_tag :create_user_map, 1, false
          = _('Yes, let me map Google Code users to full names or GitLab users.')
    %li
      %p
        = submit_tag _('Continue to the next step'), class: "btn btn-create"