diff --git a/app/views/shared/projects/_project.html.haml b/app/views/shared/projects/_project.html.haml index 1c529c91c51c2fad57e16cfb6320efb70c9e5410..e67e5a8a6387c21381e86d60a8498b0de703ecd3 100644 --- a/app/views/shared/projects/_project.html.haml +++ b/app/views/shared/projects/_project.html.haml @@ -18,7 +18,7 @@ = project.name .project-controls - - if ci && !project.empty_repo? + - if ci && !project.empty_repo? && project.commit - if ci_commit = project.ci_commit(project.commit.sha) = link_to ci_status_path(ci_commit), class: "c#{ci_status_color(ci_commit)}", title: "Build status: #{ci_commit.status}", data: {toggle: 'tooltip', placement: 'left'} do