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
71e14699
Commit
71e14699
authored
Feb 21, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render gitlab.com import block only if host is not gitlab.com
parent
829d72d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+13
-12
No files found.
app/views/projects/new.html.haml
View file @
71e14699
...
@@ -53,18 +53,19 @@
...
@@ -53,18 +53,19 @@
Import projects from GitHub
Import projects from GitHub
=
render
'github_import_modal'
=
render
'github_import_modal'
.project-import.form-group
-
unless
request
.
host
==
'gitlab.com'
.col-sm-2
.project-import.form-group
.col-sm-10
.col-sm-2
-
if
gitlab_import_enabled?
.col-sm-10
=
link_to
status_import_gitlab_path
do
-
if
gitlab_import_enabled?
%i
.fa.fa-heart
=
link_to
status_import_gitlab_path
do
Import projects from GitLab.com
%i
.fa.fa-heart
-
elsif
request
.
host
!=
'gitlab.com'
Import projects from GitLab.com
=
link_to
'#'
,
class:
'how_to_import_link light'
do
-
else
%i
.fa.fa-heart
=
link_to
'#'
,
class:
'how_to_import_link light'
do
Import projects from GitLab.com
%i
.fa.fa-heart
=
render
'gitlab_import_modal'
Import projects from GitLab.com
=
render
'gitlab_import_modal'
.project-import.form-group
.project-import.form-group
.col-sm-2
.col-sm-2
...
...
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