Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GitLab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
projects.thm.de
GitLab
Commits
f27286d0
Commit
f27286d0
authored
Apr 15, 2015
by
Daniel Gerhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable project import via Oauth providers
parent
0cb5e547
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+0
-28
config/routes.rb
config/routes.rb
+0
-1
No files found.
app/views/projects/new.html.haml
View file @
f27286d0
...
...
@@ -44,38 +44,10 @@
=
f
.
label
:visibility_level
,
class:
'label-light'
do
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?
}
"
,
"data-no-turbolink"
=>
"true"
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
git_import_enabled?
=
link_to
"#"
,
class:
'btn js-toggle-button import_git'
do
=
icon
(
'git'
,
text:
'Repo by URL'
)
%div
{
class:
'import_gitlab_project'
}
-
if
gitlab_project_import_enabled?
=
link_to
new_import_gitlab_project_path
,
class:
'btn btn_import_gitlab_project project-submit'
do
=
icon
(
'gitlab'
,
text:
'GitLab export'
)
.js-toggle-content.hide
=
render
"shared/import_form"
,
f:
f
...
...
config/routes.rb
View file @
f27286d0
...
...
@@ -63,7 +63,6 @@
# Notification settings
resources
:notification_settings
,
only:
[
:create
,
:update
]
draw
:import
draw
:uploads
draw
:explore
draw
:admin
...
...
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