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
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-22 14:28:25 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-25 18:19:57 +0300
commitef032bb9f11d0ebdef9a0faa7d394fd81bb86d49 (patch)
tree3ef9ea891b91ae89aa76dc0e1f1d85fa0e5e68f1 /app
parent81cb636e4fcb7ea76db84a92aac65a73f2376458 (diff)
Fix error on commit builds page when no builds yet
Closes #15509
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/commit/_ci_commit.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commit/_ci_commit.html.haml b/app/views/projects/commit/_ci_commit.html.haml
index 25714e6cb47..d3acd33116c 100644
--- a/app/views/projects/commit/_ci_commit.html.haml
+++ b/app/views/projects/commit/_ci_commit.html.haml
@@ -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