Commit 5b9971fa authored by Lin Jen-Shin's avatar Lin Jen-Shin

Use the same style in the same file, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16957939
parent 78c69d8d
...@@ -95,35 +95,19 @@ module GitlabRoutingHelper ...@@ -95,35 +95,19 @@ module GitlabRoutingHelper
end end
def pipeline_url(pipeline, *args) def pipeline_url(pipeline, *args)
namespace_project_pipeline_url( namespace_project_pipeline_url(pipeline.project.namespace, pipeline.project, pipeline.id, *args)
pipeline.project.namespace,
pipeline.project,
pipeline.id,
*args)
end end
def pipeline_build_url(pipeline, build, *args) def pipeline_build_url(pipeline, build, *args)
namespace_project_build_url( namespace_project_build_url(pipeline.project.namespace, pipeline.project,build.id, *args)
pipeline.project.namespace,
pipeline.project,
build.id,
*args)
end end
def commits_url(entity, *args) def commits_url(entity, *args)
namespace_project_commits_url( namespace_project_commits_url(entity.project.namespace, entity.project, entity.ref, *args)
entity.project.namespace,
entity.project,
entity.ref,
*args)
end end
def commit_url(entity, *args) def commit_url(entity, *args)
namespace_project_commit_url( namespace_project_commit_url(entity.project.namespace, entity.project, entity.sha, *args)
entity.project.namespace,
entity.project,
entity.sha,
*args)
end end
def project_snippet_url(entity, *args) def project_snippet_url(entity, *args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment