2018-06-13 05:02:41 +00:00
- page_title _("Gitea Import")
2021-06-07 18:10:23 +00:00
- header_title _("New project"), new_project_path
2021-09-21 15:12:11 +00:00
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project')
2016-12-15 16:31:14 +00:00
%h3.page-title
2019-04-24 09:21:28 +00:00
= custom_icon('gitea_logo')
2018-06-13 05:02:41 +00:00
= _('Import Projects from Gitea')
2016-12-15 16:31:14 +00:00
%p
2019-04-24 09:21:28 +00:00
- link_to_personal_token = link_to(_('Personal Access Token'), 'https://docs.gitea.io/en-us/api-usage/#authentication-via-the-api')
2018-06-13 05:02:41 +00:00
= _('To get started, please enter your Gitea Host URL and a %{link_to_personal_token}.').html_safe % { link_to_personal_token: link_to_personal_token }
2016-12-15 16:31:14 +00:00
2018-04-12 20:11:22 +00:00
= form_tag personal_access_token_import_gitea_path do
.form-group.row
2018-06-13 05:02:41 +00:00
= label_tag :gitea_host_url, _('Gitea Host URL'), class: 'col-form-label col-sm-2'
2016-12-15 16:31:14 +00:00
.col-sm-4
2021-04-28 15:09:35 +00:00
= text_field_tag :gitea_host_url, nil, placeholder: 'https://gitea.com', class: 'form-control gl-form-input'
2018-04-12 20:11:22 +00:00
.form-group.row
2018-06-13 05:02:41 +00:00
= label_tag :personal_access_token, _('Personal Access Token'), class: 'col-form-label col-sm-2'
2016-12-15 16:31:14 +00:00
.col-sm-4
2021-04-28 15:09:35 +00:00
= text_field_tag :personal_access_token, nil, class: 'form-control gl-form-input'
2016-12-15 16:31:14 +00:00
.form-actions
2021-03-15 15:09:07 +00:00
= submit_tag _('List Your Gitea Repositories'), class: 'gl-button btn btn-confirm'