2018-11-18 11:00:15 +05:30
- page_title _("Gitea Import")
- header_title _("Projects"), root_path
2017-08-17 22:00:37 +05:30
%h3.page-title
2019-07-31 22:56:46 +05:30
= custom_icon('gitea_logo')
2018-11-18 11:00:15 +05:30
= _('Import Projects from Gitea')
2017-08-17 22:00:37 +05:30
%p
2019-07-31 22:56:46 +05:30
- link_to_personal_token = link_to(_('Personal Access Token'), 'https://docs.gitea.io/en-us/api-usage/#authentication-via-the-api')
2018-11-18 11:00:15 +05:30
= _('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 }
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
= form_tag personal_access_token_import_gitea_path do
.form-group.row
2018-11-18 11:00:15 +05:30
= label_tag :gitea_host_url, _('Gitea Host URL'), class: 'col-form-label col-sm-2'
2017-08-17 22:00:37 +05:30
.col-sm-4
2019-07-31 22:56:46 +05:30
= text_field_tag :gitea_host_url, nil, placeholder: 'https://gitea.com', class: 'form-control'
2018-11-08 19:23:39 +05:30
.form-group.row
2018-11-18 11:00:15 +05:30
= label_tag :personal_access_token, _('Personal Access Token'), class: 'col-form-label col-sm-2'
2017-08-17 22:00:37 +05:30
.col-sm-4
= text_field_tag :personal_access_token, nil, class: 'form-control'
.form-actions
2018-12-05 23:21:45 +05:30
= submit_tag _('List Your Gitea Repositories'), class: 'btn btn-success'