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

23 lines
1,012 B
Text
Raw Normal View History

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
= custom_icon('go_logo')
2018-11-18 11:00:15 +05:30
= _('Import Projects from Gitea')
2017-08-17 22:00:37 +05:30
%p
2018-11-18 11:00:15 +05:30
- 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 }
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
= text_field_tag :gitea_host_url, nil, placeholder: 'https://try.gitea.io', 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-11-18 11:00:15 +05:30
= submit_tag _('List Your Gitea Repositories'), class: 'btn btn-create'