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
2563213c
Commit
2563213c
authored
Mar 12, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove existing go_import.html.haml implementation
parent
cc065fbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+0
-11
app/views/projects/go_import.html.haml
app/views/projects/go_import.html.haml
+0
-5
No files found.
app/controllers/projects_controller.rb
View file @
2563213c
class
ProjectsController
<
ApplicationController
include
ExtractsPath
prepend_before_action
:render_go_import
,
only:
[
:show
]
skip_before_action
:authenticate_user!
,
only:
[
:show
,
:activity
]
before_action
:project
,
except:
[
:new
,
:create
]
before_action
:repository
,
except:
[
:new
,
:create
]
...
...
@@ -242,16 +241,6 @@ class ProjectsController < ApplicationController
end
end
def
render_go_import
return
unless
params
[
"go-get"
]
==
"1"
@namespace
=
params
[
:namespace_id
]
@id
=
params
[
:project_id
]
||
params
[
:id
]
@id
=
@id
.
gsub
(
/\.git\Z/
,
""
)
render
"go_import"
,
layout:
false
end
def
repo_exists?
project
.
repository_exists?
&&
!
project
.
empty_repo?
end
...
...
app/views/projects/go_import.html.haml
deleted
100644 → 0
View file @
cc065fbe
!!! 5
%html
%head
-
web_url
=
[
Gitlab
.
config
.
gitlab
.
url
,
@namespace
,
@id
].
join
(
'/'
)
%meta
{
name:
"go-import"
,
content:
"#{web_url.split('://')[1]} git #{web_url}.git"
}
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