BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
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
...
@@ -16,24 +16,24 @@ module Gitlab
end
end
def
url
def
url
#TODO refactor this
#
TODO refactor this
case
@entity
case
@entity
when
:issue
when
:issue
issue_url
issue_url
when
:user
when
:user
user_url
(
@id
)
user_url
(
@id
)
when
:user_avatar_url
when
:user_avatar_url
user_avatar_url
user_avatar_url
when
:commit_url
when
:commit_url
commit_url
commit_url
when
:merge_request
when
:merge_request
mr_url
mr_url
when
:build_url
when
:build_url
namespace_project_build_url
(
@project
.
namespace
,
@project
,
@id
)
namespace_project_build_url
(
@project
.
namespace
,
@project
,
@id
)
when
:branch_url
when
:branch_url
branch_url
branch_url
else
else
raise
NotImplementedError
.
new
(
"No URL builder defined for
#{
object
.
class
}
"
)
raise
NotImplementedError
.
new
(
"No URL builder defined for
#{
object
.
class
}
"
)
end
end
end
end
...
@@ -67,7 +67,6 @@ module Gitlab
...
@@ -67,7 +67,6 @@ module Gitlab
}.
merge!
(
@opts
))
}.
merge!
(
@opts
))
end
end
def
pipeline_url
def
pipeline_url
namespace_project_build_url
({
namespace_project_build_url
({
namespace_id:
@project
.
namespace
,
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