Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/ci/commits_helper.rb')
-rw-r--r--app/helpers/ci/commits_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/ci/commits_helper.rb b/app/helpers/ci/commits_helper.rb
index 748d12138b1..86f254223cb 100644
--- a/app/helpers/ci/commits_helper.rb
+++ b/app/helpers/ci/commits_helper.rb
@@ -15,8 +15,12 @@ module Ci
end
end
+ def ci_commit_path(commit)
+ ci_project_ref_commits_path(commit.project, commit.ref, commit.sha)
+ end
+
def commit_link(commit)
- link_to(commit.short_sha, ci_project_ref_commits_path(commit.project, commit.ref, commit.sha))
+ link_to(commit.short_sha, ci_commit_path(commit))
end
def truncate_first_line(message, length = 50)