2018-06-13 01:02:41 -04:00
- page_title _("Gitea Import")
- header_title _("Projects"), root_path
2016-12-15 11:31:14 -05:00
%h3.page-title
= custom_icon('go_logo')
2018-06-13 01:02:41 -04:00
= _('Import Projects from Gitea')
2016-12-15 11:31:14 -05:00
%p
2018-06-13 01:02:41 -04:00
- link_to_personal_token = link_to(_('Personal Access Token'), 'https://github.com/gogits/go-gogs-client/wiki#access-token')
= _('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 11:31:14 -05:00
2018-04-12 16:11:22 -04:00
= form_tag personal_access_token_import_gitea_path do
.form-group.row
2018-06-13 01:02:41 -04:00
= label_tag :gitea_host_url, _('Gitea Host URL'), class: 'col-form-label col-sm-2'
2016-12-15 11:31:14 -05:00
.col-sm-4
= text_field_tag :gitea_host_url, nil, placeholder: 'https://try.gitea.io', class: 'form-control'
2018-04-12 16:11:22 -04:00
.form-group.row
2018-06-13 01:02:41 -04:00
= label_tag :personal_access_token, _('Personal Access Token'), class: 'col-form-label col-sm-2'
2016-12-15 11:31:14 -05:00
.col-sm-4
= text_field_tag :personal_access_token, nil, class: 'form-control'
.form-actions
2018-09-18 05:58:22 -04:00
= submit_tag _('List Your Gitea Repositories'), class: 'btn btn-success'