summaryrefslogtreecommitdiff
path: root/app/helpers/builds_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/builds_helper.rb')
-rw-r--r--app/helpers/builds_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/builds_helper.rb b/app/helpers/builds_helper.rb
index 9980e75..0c1e264 100644
--- a/app/helpers/builds_helper.rb
+++ b/app/helpers/builds_helper.rb
@@ -1,6 +1,6 @@
module BuildsHelper
def build_ref_link build
- if build.gitlab?
+ if build.commit.gitlab?
gitlab_ref_link build.project, build.ref
else
build.ref
@@ -8,13 +8,13 @@ module BuildsHelper
end
def build_compare_link build
- if build.gitlab?
- gitlab_compare_link build.project, build.short_before_sha, build.short_sha
+ if build.commit.gitlab?
+ gitlab_compare_link build.project, build.commit.short_before_sha, build.short_sha
end
end
def build_commit_link build
- if build.gitlab?
+ if build.commit.gitlab?
gitlab_commit_link build.project, build.short_sha
else
build.short_sha