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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
80f657c0
Commit
80f657c0
authored
7 years ago
by
Mark Fletcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable GitLab Project Import Button if source disabled
parent
19dfd9e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+4
-3
changelogs/unreleased/36882-disable-gitlab-project-import-button-if-source-disabled.yml
...sable-gitlab-project-import-button-if-source-disabled.yml
+5
-0
No files found.
app/views/projects/new.html.haml
View file @
80f657c0
...
...
@@ -68,9 +68,10 @@
-
if
git_import_enabled?
%button
.btn.js-toggle-button.import_git
{
type:
"button"
}
=
icon
(
'git'
,
text:
'Repo by URL'
)
.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'
)
-
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'
)
.row
.col-lg-12
...
...
This diff is collapsed.
Click to expand it.
changelogs/unreleased/36882-disable-gitlab-project-import-button-if-source-disabled.yml
0 → 100644
View file @
80f657c0
---
title
:
Disable GitLab Project Import Button if source disabled
merge_request
:
author
:
type
:
fixed
This diff is collapsed.
Click to expand it.
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