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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-11 14:05:31 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-11 14:05:31 +0300
commit0615de013d1e30d147ca7c62fa62a251567337b1 (patch)
tree29a0ef63f222209d9e31baf3e54e01d8f224c62d /app/helpers
parenta8dd4d36e2ba2bcf2488ce12aa0809c339653fc8 (diff)
Fix ci commits features specs
Diffstat (limited to 'app/helpers')
-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)