From 5a4c7a8e379b6d9ddde16b251b5c09cef2e88f45 Mon Sep 17 00:00:00 2001 From: George Vinogradov Date: Tue, 14 Aug 2012 18:57:25 +0400 Subject: [PATCH] [issue #590] Fixed BuildList started check (thnx 2 @alexander-machehin) --- app/views/projects/build_lists/_build_list.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/build_lists/_build_list.html.haml b/app/views/projects/build_lists/_build_list.html.haml index 2f0f20076..a5daa5d67 100644 --- a/app/views/projects/build_lists/_build_list.html.haml +++ b/app/views/projects/build_lists/_build_list.html.haml @@ -6,7 +6,7 @@ - if BuildList::HUMAN_STATUSES[build_list.status].in? [:build_pending, :build_started, :build_publish] %time.js-relative-date{:datetime => build_list.updated_at.strftime("%FT%T%:z"), :title => build_list.updated_at.strftime("%F %T")} = build_list.updated_at.strftime "%F %T" - - if (BuildList::HUMAN_STATUSES[build_list.status] == :build_started) && ((build_list.project.average_build_time || 0) > 0) + - if build_list.build_started? && ((build_list.project.average_build_time || 0) > 0) \/ %time = build_list.project.formatted_average_build_time