Fix error on commit builds page when no builds yet

Closes #15509
This commit is contained in:
Grzegorz Bizon
2016-04-25 17:19:57 +02:00
parent 81cb636e4f
commit ef032bb9f1
2 changed files with 28 additions and 1 deletions
@@ -16,7 +16,7 @@
- if defined?(link_to_commit) && link_to_commit
for commit
= link_to ci_commit.short_sha, namespace_project_commit_path(@project.namespace, @project, ci_commit.sha), class: "monospace"
- if ci_commit.duration > 0
- if ci_commit.duration
in
= time_interval_in_words ci_commit.duration