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
Tatuya Kamada
gitlab-ce
Commits
ef462216
Commit
ef462216
authored
Aug 10, 2016
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate link_to statements
parent
6907af28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+6
-12
No files found.
app/views/projects/new.html.haml
View file @
ef462216
...
...
@@ -49,21 +49,15 @@
=
icon
(
'github'
,
text:
'GitHub'
)
%div
-
if
bitbucket_import_enabled?
-
if
bitbucket_import_configured?
=
link_to
status_import_bitbucket_path
,
class:
'btn import_bitbucket'
,
"data-no-turbolink"
=>
"true"
do
=
icon
(
'bitbucket'
,
text:
'Bitbucket'
)
-
else
=
link_to
status_import_bitbucket_path
,
class:
'how_to_import_link btn import_bitbucket'
,
"data-no-turbolink"
=>
"true"
do
=
icon
(
'bitbucket'
,
text:
'Bitbucket'
)
=
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?
-
if
gitlab_import_configured?
=
link_to
status_import_gitlab_path
,
class:
'btn import_gitlab'
do
=
icon
(
'gitlab'
,
text:
'GitLab.com'
)
-
else
=
link_to
status_import_gitlab_path
,
class:
'how_to_import_link btn import_gitlab'
do
=
icon
(
'gitlab'
,
text:
'GitLab.com'
)
=
link_to
status_import_gitlab_path
,
class:
"btn import_gitlab
#{
'how_to_import_link'
unless
bitbucket_import_configured?
}
"
do
=
icon
(
'gitlab'
,
text:
'GitLab.com'
)
-
unless
gitlab_import_configured?
=
render
'gitlab_import_modal'
%div
-
if
gitorious_import_enabled?
...
...
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