Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4b855508
Commit
4b855508
authored
Jul 13, 2021
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address reviewer comments
parent
2d909b1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
app/assets/javascripts/projects/project_new.js
app/assets/javascripts/projects/project_new.js
+1
-1
app/views/shared/_import_form.html.haml
app/views/shared/_import_form.html.haml
+8
-2
No files found.
app/assets/javascripts/projects/project_new.js
View file @
4b855508
...
@@ -74,7 +74,7 @@ const deriveProjectPathFromUrl = ($projectImportUrl) => {
...
@@ -74,7 +74,7 @@ const deriveProjectPathFromUrl = ($projectImportUrl) => {
const
bindEvents
=
()
=>
{
const
bindEvents
=
()
=>
{
const
$newProjectForm
=
$
(
'
#new_project
'
);
const
$newProjectForm
=
$
(
'
#new_project
'
);
const
$projectImportUrl
=
$
(
'
#project_import_url
'
);
const
$projectImportUrl
=
$
(
'
#project_import_url
'
);
const
$projectImportUrlWarning
=
$
(
'
#project_import_url_
warning
'
);
const
$projectImportUrlWarning
=
$
(
'
.js-import-url-
warning
'
);
const
$projectPath
=
$
(
'
.tab-pane.active #project_path
'
);
const
$projectPath
=
$
(
'
.tab-pane.active #project_path
'
);
const
$useTemplateBtn
=
$
(
'
.template-button > input
'
);
const
$useTemplateBtn
=
$
(
'
.template-button > input
'
);
const
$projectFieldsForm
=
$
(
'
.project-fields-form
'
);
const
$projectFieldsForm
=
$
(
'
.project-fields-form
'
);
...
...
app/views/shared/_import_form.html.haml
View file @
4b855508
...
@@ -8,12 +8,18 @@
...
@@ -8,12 +8,18 @@
=
_
(
'Git repository URL'
)
=
_
(
'Git repository URL'
)
=
f
.
text_field
:import_url
,
value:
import_url
.
sanitized_url
,
=
f
.
text_field
:import_url
,
value:
import_url
.
sanitized_url
,
autocomplete:
'off'
,
class:
'form-control gl-form-input'
,
placeholder:
'https://gitlab.company.com/group/project.git'
,
required:
true
autocomplete:
'off'
,
class:
'form-control gl-form-input'
,
placeholder:
'https://gitlab.company.com/group/project.git'
,
required:
true
=
render
'shared/global_alert'
,
variant: :warning
,
alert_class:
'gl-mt-3 js-import-url-warning hide'
,
dismissible:
false
,
close_button_class:
'js-close-2fa-enabled-success-alert'
do
.gl-alert-body
=
s_
(
'Import|A repository URL usually ends with a .git suffix, although this is not required. Double check to make sure your repository URL is correct.'
)
.gl-alert.gl-alert-not-dismissible.gl-alert-warning.gl-mt-3.hide
#project_import_url_warning
.gl-alert.gl-alert-not-dismissible.gl-alert-warning.gl-mt-3.hide
#project_import_url_warning
.gl-alert-container
.gl-alert-container
=
sprite_icon
(
'warning-solid'
,
css_class:
'gl-icon s16 gl-alert-icon gl-alert-icon-no-title'
)
=
sprite_icon
(
'warning-solid'
,
css_class:
'gl-icon s16 gl-alert-icon gl-alert-icon-no-title'
)
.gl-alert-content
{
role:
'alert'
}
.gl-alert-content
{
role:
'alert'
}
.gl-alert-body
=
s_
(
'Import|A repository URL usually ends in a .git suffix, although this is not required. Double check to make sure your repository URL is correct.'
)
.row
.row
.form-group.col-md-6
.form-group.col-md-6
=
f
.
label
:import_url_user
,
class:
'label-bold'
do
=
f
.
label
:import_url_user
,
class:
'label-bold'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment