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
f97e83dd
Unverified
Commit
f97e83dd
authored
Oct 11, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project fields to import project by url
parent
119a3b34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
47 deletions
+53
-47
projects.scss
app/assets/stylesheets/pages/projects.scss
+5
-1
new.html.haml
app/views/projects/new.html.haml
+48
-46
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
f97e83dd
...
...
@@ -634,10 +634,14 @@ a.deploy-project-label {
}
.project-import
{
.
form-group
{
.
import-btn-container
{
margin-bottom
:
0
;
}
.toggle-import-form
{
padding-bottom
:
10px
;
}
.import-buttons
{
padding-left
:
0
;
display
:
-
webkit-flex
;
...
...
app/views/projects/new.html.haml
View file @
f97e83dd
...
...
@@ -48,52 +48,54 @@
.tab-pane.import-project-pane
{
id:
'import-project-pane'
,
role:
'tabpanel'
}
=
form_for
@project
,
html:
{
class:
'new_project'
}
do
|
f
|
-
if
import_sources_enabled?
.project-import
.form-group.clearfix
=
f
.
label
:visibility_level
,
class:
'label-light'
do
#the label here seems wrong
Import project from
.col-sm-12.import-buttons
%div
-
if
github_import_enabled?
=
link_to
new_import_github_path
,
class:
'btn import_github'
do
=
icon
(
'github'
,
text:
'GitHub'
)
%div
-
if
bitbucket_import_enabled?
=
link_to
status_import_bitbucket_path
,
class:
"btn import_bitbucket
#{
'how_to_import_link'
unless
bitbucket_import_configured?
}
"
do
=
icon
(
'bitbucket'
,
text:
'Bitbucket'
)
-
unless
bitbucket_import_configured?
=
render
'bitbucket_import_modal'
%div
-
if
gitlab_import_enabled?
=
link_to
status_import_gitlab_path
,
class:
"btn import_gitlab
#{
'how_to_import_link'
unless
gitlab_import_configured?
}
"
do
=
icon
(
'gitlab'
,
text:
'GitLab.com'
)
-
unless
gitlab_import_configured?
=
render
'gitlab_import_modal'
%div
-
if
google_code_import_enabled?
=
link_to
new_import_google_code_path
,
class:
'btn import_google_code'
do
=
icon
(
'google'
,
text:
'Google Code'
)
%div
-
if
fogbugz_import_enabled?
=
link_to
new_import_fogbugz_path
,
class:
'btn import_fogbugz'
do
=
icon
(
'bug'
,
text:
'Fogbugz'
)
%div
-
if
gitea_import_enabled?
=
link_to
new_import_gitea_url
,
class:
'btn import_gitea'
do
=
custom_icon
(
'go_logo'
)
Gitea
%div
-
if
git_import_enabled?
%button
.btn.js-toggle-button.import_git
{
type:
"button"
}
=
icon
(
'git'
,
text:
'Repo by URL'
)
-
if
gitlab_project_import_enabled?
.import_gitlab_project.has-tooltip
{
data:
{
container:
'body'
}
}
=
link_to
new_import_gitlab_project_path
,
class:
'btn btn_import_gitlab_project project-submit'
do
=
icon
(
'gitlab'
,
text:
'GitLab export'
)
.col-lg-12
.js-toggle-content.hide
%hr
=
render
"shared/import_form"
,
f:
f
.project-import.row
.col-sm-12
.form-group.import-btn-container.clearfix
=
f
.
label
:visibility_level
,
class:
'label-light'
do
#the label here seems wrong
Import project from
.import-buttons
%div
-
if
github_import_enabled?
=
link_to
new_import_github_path
,
class:
'btn import_github'
do
=
icon
(
'github'
,
text:
'GitHub'
)
%div
-
if
bitbucket_import_enabled?
=
link_to
status_import_bitbucket_path
,
class:
"btn import_bitbucket
#{
'how_to_import_link'
unless
bitbucket_import_configured?
}
"
do
=
icon
(
'bitbucket'
,
text:
'Bitbucket'
)
-
unless
bitbucket_import_configured?
=
render
'bitbucket_import_modal'
%div
-
if
gitlab_import_enabled?
=
link_to
status_import_gitlab_path
,
class:
"btn import_gitlab
#{
'how_to_import_link'
unless
gitlab_import_configured?
}
"
do
=
icon
(
'gitlab'
,
text:
'GitLab.com'
)
-
unless
gitlab_import_configured?
=
render
'gitlab_import_modal'
%div
-
if
google_code_import_enabled?
=
link_to
new_import_google_code_path
,
class:
'btn import_google_code'
do
=
icon
(
'google'
,
text:
'Google Code'
)
%div
-
if
fogbugz_import_enabled?
=
link_to
new_import_fogbugz_path
,
class:
'btn import_fogbugz'
do
=
icon
(
'bug'
,
text:
'Fogbugz'
)
%div
-
if
gitea_import_enabled?
=
link_to
new_import_gitea_url
,
class:
'btn import_gitea'
do
=
custom_icon
(
'go_logo'
)
Gitea
%div
-
if
git_import_enabled?
%button
.btn.js-toggle-button.import_git
{
type:
"button"
}
=
icon
(
'git'
,
text:
'Repo by URL'
)
-
if
gitlab_project_import_enabled?
.import_gitlab_project.has-tooltip
{
data:
{
container:
'body'
}
}
=
link_to
new_import_gitlab_project_path
,
class:
'btn btn_import_gitlab_project project-submit'
do
=
icon
(
'gitlab'
,
text:
'GitLab export'
)
.col-lg-12
.js-toggle-content.hide.toggle-import-form
%hr
=
render
"shared/import_form"
,
f:
f
=
render
'new_project_fields'
,
f:
f
,
project_name_id:
"import-url-name"
.save-project-loader.hide
.center
...
...
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