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
b4bb33c5
Commit
b4bb33c5
authored
Nov 04, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rubocop warning
parent
449a9fb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
lib/gitlab/light_url_builder.rb
lib/gitlab/light_url_builder.rb
+17
-18
No files found.
lib/gitlab/light_url_builder.rb
View file @
b4bb33c5
...
...
@@ -16,24 +16,24 @@ module Gitlab
end
def
url
#TODO refactor this
#
TODO refactor this
case
@entity
when
:issue
issue_url
when
:user
user_url
(
@id
)
when
:user_avatar_url
user_avatar_url
when
:commit_url
commit_url
when
:merge_request
mr_url
when
:build_url
namespace_project_build_url
(
@project
.
namespace
,
@project
,
@id
)
when
:branch_url
branch_url
else
raise
NotImplementedError
.
new
(
"No URL builder defined for
#{
object
.
class
}
"
)
when
:issue
issue_url
when
:user
user_url
(
@id
)
when
:user_avatar_url
user_avatar_url
when
:commit_url
commit_url
when
:merge_request
mr_url
when
:build_url
namespace_project_build_url
(
@project
.
namespace
,
@project
,
@id
)
when
:branch_url
branch_url
else
raise
NotImplementedError
.
new
(
"No URL builder defined for
#{
object
.
class
}
"
)
end
end
...
...
@@ -67,7 +67,6 @@ module Gitlab
}.
merge!
(
@opts
))
end
def
pipeline_url
namespace_project_build_url
({
namespace_id:
@project
.
namespace
,
...
...
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