diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-11 16:55:40 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-11 23:32:55 +0200 |
commit | af7214d0f077f738ed57194feb0cd468c43d4310 (patch) | |
tree | 36c2d2abd7252af8a4610f22affa92f8f2b2e1e5 /app/helpers/ci_status_helper.rb | |
parent | 5d69f5b46d475f34fb71dfb4e8b683e90897f1da (diff) | |
download | gitlab-ce-af7214d0f077f738ed57194feb0cd468c43d4310.tar.gz |
Fix specs
Diffstat (limited to 'app/helpers/ci_status_helper.rb')
-rw-r--r-- | app/helpers/ci_status_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb index fd2179c7af5..effa7ce77e1 100644 --- a/app/helpers/ci_status_helper.rb +++ b/app/helpers/ci_status_helper.rb @@ -34,6 +34,8 @@ module CiStatusHelper end def render_ci_status(ci_commit, tooltip_placement: 'auto left') + return unless ci_commit.is_a?(Commit) || ci_commit.is_a?(Ci::Commit) + link_to ci_icon_for_status(ci_commit.status), project_ci_commit_path(ci_commit.project, ci_commit), class: "ci-status-link ci-status-icon-#{ci_commit.status.dasherize}", |