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
d22993b4
Commit
d22993b4
authored
Nov 29, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor EE gitlab routing helper
parent
937b8d03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
app/helpers/ee/gitlab_routing_helper.rb
app/helpers/ee/gitlab_routing_helper.rb
+18
-0
app/helpers/ee_gitlab_routing_helper.rb
app/helpers/ee_gitlab_routing_helper.rb
+0
-16
No files found.
app/helpers/ee/gitlab_routing_helper.rb
0 → 100644
View file @
d22993b4
module
Ee
module
GitlabRoutingHelper
def
geo_primary_web_url
(
project
)
File
.
join
(
::
Gitlab
::
Geo
.
primary_node
.
url
,
::
Gitlab
::
Routing
.
url_helpers
.
namespace_project_path
(
project
.
namespace
,
project
))
end
def
geo_primary_http_url_to_repo
(
project
)
"
#{
geo_primary_web_url
(
project
)
}
.git"
end
def
geo_primary_default_url_to_repo
(
project
)
case
default_clone_protocol
when
'http'
geo_primary_http_url_to_repo
(
project
)
end
end
end
end
app/helpers/ee_gitlab_routing_helper.rb
deleted
100644 → 0
View file @
937b8d03
module
EeGitlabRoutingHelper
def
geo_primary_web_url
(
project
)
File
.
join
(
::
Gitlab
::
Geo
.
primary_node
.
url
,
::
Gitlab
::
Routing
.
url_helpers
.
namespace_project_path
(
project
.
namespace
,
project
))
end
def
geo_primary_http_url_to_repo
(
project
)
"
#{
geo_primary_web_url
(
project
)
}
.git"
end
def
geo_primary_default_url_to_repo
(
project
)
case
default_clone_protocol
when
'http'
geo_primary_http_url_to_repo
(
project
)
end
end
end
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