BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e2d6521d
Commit
e2d6521d
authored
Jul 13, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some JS magic to fix empty URL bug
parent
dd639550
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
new.html.haml
app/views/projects/new.html.haml
+10
-1
_import_form.html.haml
app/views/shared/_import_form.html.haml
+1
-1
No files found.
app/views/projects/new.html.haml
View file @
e2d6521d
...
...
@@ -154,4 +154,12 @@
$
(
'.import_gitlab_project'
).
attr
(
'disabled'
,
true
);
$
(
'.import_gitlab_project'
).
attr
(
'title'
,
'Project path required.'
);
}
})
});
$
(
'.import_git'
).
click
(
function
(
event
)
{
if
(
$
(
'#project_import_url'
).
attr
(
'disabled'
))
{
$
(
'#project_import_url'
).
attr
(
'disabled'
,
false
);
}
else
{
$
(
'#project_import_url'
).
attr
(
'disabled'
,
true
);
}
});
\ No newline at end of file
app/views/shared/_import_form.html.haml
View file @
e2d6521d
...
...
@@ -2,7 +2,7 @@
=
f
.
label
:import_url
,
class:
'control-label'
do
%span
Git repository URL
.col-sm-10
=
f
.
text_field
:import_url
,
class:
'form-control'
,
placeholder:
'https://username:password@gitlab.company.com/group/project.git'
=
f
.
text_field
:import_url
,
class:
'form-control'
,
placeholder:
'https://username:password@gitlab.company.com/group/project.git'
,
disabled:
true
.well.prepend-top-20
%ul
...
...
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