debian-mirror-gitlab/app/views/import/fogbugz/new_user_map.html.haml

46 lines
2.2 KiB
Text
Raw Normal View History

2018-11-18 11:00:15 +05:30
- page_title _('User map'), _('FogBugz import')
2021-09-04 01:27:46 +05:30
- header_title _("New project"), new_project_path
2021-11-18 22:05:49 +05:30
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project')
2021-09-04 01:27:46 +05:30
2020-11-24 15:15:51 +05:30
%h3.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('bug', css_class: 'gl-mr-2')
2018-11-18 11:00:15 +05:30
= _('Import projects from FogBugz')
2015-09-25 12:07:36 +05:30
%hr
2018-11-08 19:23:39 +05:30
= form_tag create_user_map_import_fogbugz_path do
2015-09-25 12:07:36 +05:30
%p
2018-11-18 11:00:15 +05:30
= _("Customize how FogBugz email addresses and usernames are imported into GitLab. In the next step, you'll be able to select the projects you want to import.")
2015-09-25 12:07:36 +05:30
%p
2018-11-18 11:00:15 +05:30
= _("The user map is a mapping of the FogBugz users that participated on your projects to the way their email address and usernames will be imported into GitLab. You can change this by populating the table below.")
2015-09-25 12:07:36 +05:30
%ul
%li
2018-11-18 11:00:15 +05:30
%strong= _("Default: Map a FogBugz account ID to a full name")
2015-09-25 12:07:36 +05:30
%p
2018-11-18 11:00:15 +05:30
= _("An empty GitLab User field will add the FogBugz user's full name (e.g. \"By John Smith\") in the description of all issues and comments. It will also associate and/or assign these issues and comments with the project creator.")
2015-09-25 12:07:36 +05:30
%li
2018-11-18 11:00:15 +05:30
%strong= _("Map a FogBugz account ID to a GitLab user")
2015-09-25 12:07:36 +05:30
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('Selecting a GitLab user will add a link to the GitLab user in the descriptions of issues and comments (e.g. "By %{link_open}@johnsmith%{link_close}"). It will also associate and/or assign these issues and comments with the selected user.')) % { link_open: '<a href="#">'.html_safe, link_close: '</a>'.html_safe }
2015-09-25 12:07:36 +05:30
2015-11-26 14:37:03 +05:30
.table-holder
%table.table
%thead
2015-09-25 12:07:36 +05:30
%tr
2018-11-18 11:00:15 +05:30
%th= _("ID")
%th= _("Name")
%th= _("Email")
%th= _("GitLab User")
2015-11-26 14:37:03 +05:30
%tbody
- @user_map.each do |id, user|
%tr
2021-04-29 21:17:54 +05:30
%td= id
2015-11-26 14:37:03 +05:30
%td= text_field_tag "users[#{id}][name]", user[:name], class: 'form-control'
%td= text_field_tag "users[#{id}][email]", user[:email], class: 'form-control'
%td
= users_select_tag("users[#{id}][gitlab_user]", class: 'custom-form-control',
scope: :all, email_user: true, selected: user[:gitlab_user])
2015-09-25 12:07:36 +05:30
.form-actions
2021-04-17 20:07:23 +05:30
= submit_tag _('Continue to the next step'), class: 'gl-button btn btn-confirm'