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
Jérome Perrin
gitlab-ce
Commits
6907af28
Commit
6907af28
authored
Aug 08, 2016
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FA GitLab Icon for import project button
parent
91030230
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
18 deletions
+10
-18
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+10
-18
No files found.
app/views/projects/new.html.haml
View file @
6907af28
...
@@ -46,28 +46,24 @@
...
@@ -46,28 +46,24 @@
%div
%div
-
if
github_import_enabled?
-
if
github_import_enabled?
=
link_to
new_import_github_path
,
class:
'btn import_github'
do
=
link_to
new_import_github_path
,
class:
'btn import_github'
do
=
icon
'github'
,
text:
'GitHub'
=
icon
(
'github'
,
text:
'GitHub'
)
%div
%div
-
if
bitbucket_import_enabled?
-
if
bitbucket_import_enabled?
-
if
bitbucket_import_configured?
-
if
bitbucket_import_configured?
=
link_to
status_import_bitbucket_path
,
class:
'btn import_bitbucket'
,
"data-no-turbolink"
=>
"true"
do
=
link_to
status_import_bitbucket_path
,
class:
'btn import_bitbucket'
,
"data-no-turbolink"
=>
"true"
do
%i
.fa.fa-bitbucket
=
icon
(
'bitbucket'
,
text:
'Bitbucket'
)
Bitbucket
-
else
-
else
=
link_to
status_import_bitbucket_path
,
class:
'how_to_import_link btn import_bitbucket'
,
"data-no-turbolink"
=>
"true"
do
=
link_to
status_import_bitbucket_path
,
class:
'how_to_import_link btn import_bitbucket'
,
"data-no-turbolink"
=>
"true"
do
%i
.fa.fa-bitbucket
=
icon
(
'bitbucket'
,
text:
'Bitbucket'
)
Bitbucket
=
render
'bitbucket_import_modal'
=
render
'bitbucket_import_modal'
%div
%div
-
if
gitlab_import_enabled?
-
if
gitlab_import_enabled?
-
if
gitlab_import_configured?
-
if
gitlab_import_configured?
=
link_to
status_import_gitlab_path
,
class:
'btn import_gitlab'
do
=
link_to
status_import_gitlab_path
,
class:
'btn import_gitlab'
do
%i
.fa.fa-heart
=
icon
(
'gitlab'
,
text:
'GitLab.com'
)
GitLab.com
-
else
-
else
=
link_to
status_import_gitlab_path
,
class:
'how_to_import_link btn import_gitlab'
do
=
link_to
status_import_gitlab_path
,
class:
'how_to_import_link btn import_gitlab'
do
%i
.fa.fa-heart
=
icon
(
'gitlab'
,
text:
'GitLab.com'
)
GitLab.com
=
render
'gitlab_import_modal'
=
render
'gitlab_import_modal'
%div
%div
-
if
gitorious_import_enabled?
-
if
gitorious_import_enabled?
...
@@ -77,23 +73,19 @@
...
@@ -77,23 +73,19 @@
%div
%div
-
if
google_code_import_enabled?
-
if
google_code_import_enabled?
=
link_to
new_import_google_code_path
,
class:
'btn import_google_code'
do
=
link_to
new_import_google_code_path
,
class:
'btn import_google_code'
do
%i
.fa.fa-google
=
icon
(
'google'
,
text:
'Google Code'
)
Google Code
%div
%div
-
if
fogbugz_import_enabled?
-
if
fogbugz_import_enabled?
=
link_to
new_import_fogbugz_path
,
class:
'btn import_fogbugz'
do
=
link_to
new_import_fogbugz_path
,
class:
'btn import_fogbugz'
do
%i
.fa.fa-bug
=
icon
(
'bug'
,
text:
'Fogbugz'
)
Fogbugz
%div
%div
-
if
git_import_enabled?
-
if
git_import_enabled?
=
link_to
"#"
,
class:
'btn js-toggle-button import_git'
do
=
link_to
"#"
,
class:
'btn js-toggle-button import_git'
do
%i
.fa.fa-git
=
icon
(
'git'
,
text:
'Repo by URL'
)
%span
Repo by URL
%div
{
class:
'import_gitlab_project'
}
%div
{
class:
'import_gitlab_project'
}
-
if
gitlab_project_import_enabled?
-
if
gitlab_project_import_enabled?
=
link_to
new_import_gitlab_project_path
,
class:
'btn btn_import_gitlab_project project-submit'
do
=
link_to
new_import_gitlab_project_path
,
class:
'btn btn_import_gitlab_project project-submit'
do
%i
.fa.fa-gitlab
=
icon
(
'gitlab'
,
text:
'GitLab export'
)
%span
GitLab export
.js-toggle-content.hide
.js-toggle-content.hide
=
render
"shared/import_form"
,
f:
f
=
render
"shared/import_form"
,
f:
f
...
@@ -159,4 +151,4 @@
...
@@ -159,4 +151,4 @@
$
(
'
.import_git
'
).
click
(
function
(
event
)
{
$
(
'
.import_git
'
).
click
(
function
(
event
)
{
$projectImportUrl
=
$
(
'
#project_import_url
'
)
$projectImportUrl
=
$
(
'
#project_import_url
'
)
$projectImportUrl
.
attr
(
'
disabled
'
,
!
$projectImportUrl
.
attr
(
'
disabled
'
))
$projectImportUrl
.
attr
(
'
disabled
'
,
!
$projectImportUrl
.
attr
(
'
disabled
'
))
});
});
\ No newline at end of file
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