7f8a520f8a
Rename btn-new, btn-create and btn-save to btn-success Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
22 lines
1,013 B
Text
22 lines
1,013 B
Text
- page_title _("Gitea Import")
|
|
- header_title _("Projects"), root_path
|
|
|
|
%h3.page-title
|
|
= custom_icon('go_logo')
|
|
= _('Import Projects from Gitea')
|
|
|
|
%p
|
|
- 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 }
|
|
|
|
= form_tag personal_access_token_import_gitea_path do
|
|
.form-group.row
|
|
= label_tag :gitea_host_url, _('Gitea Host URL'), class: 'col-form-label col-sm-2'
|
|
.col-sm-4
|
|
= text_field_tag :gitea_host_url, nil, placeholder: 'https://try.gitea.io', class: 'form-control'
|
|
.form-group.row
|
|
= label_tag :personal_access_token, _('Personal Access Token'), class: 'col-form-label col-sm-2'
|
|
.col-sm-4
|
|
= text_field_tag :personal_access_token, nil, class: 'form-control'
|
|
.form-actions
|
|
= submit_tag _('List Your Gitea Repositories'), class: 'btn btn-success'
|