From ad708c7ced5c1cfd10e934d4bc7492d157894c44 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Mon, 23 Jun 2014 20:39:57 +0400 Subject: [PATCH] #403: updated build list status color --- app/assets/javascripts/angularjs/models/build_list.js.erb | 1 + app/helpers/build_lists_helper.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/angularjs/models/build_list.js.erb b/app/assets/javascripts/angularjs/models/build_list.js.erb index 9941ef3e8..78912813b 100644 --- a/app/assets/javascripts/angularjs/models/build_list.js.erb +++ b/app/assets/javascripts/angularjs/models/build_list.js.erb @@ -50,6 +50,7 @@ var BuildList = function(atts, dictionary) { case <%=BuildList::BUILD_ERROR%>: case <%=BuildList::FAILED_PUBLISH%>: case <%=BuildList::FAILED_PUBLISH_INTO_TESTING%>: + case <%=BuildList::PACKAGES_FAIL%>: case <%=BuildList::REJECTED_PUBLISH%>: self.status_color = 'error'; break case <%=BuildList::TESTS_FAILED%>: self.status_color = 'warning'; break default: self.status_color = 'nocolor'; diff --git a/app/helpers/build_lists_helper.rb b/app/helpers/build_lists_helper.rb index 5c1d21aeb..e71211975 100644 --- a/app/helpers/build_lists_helper.rb +++ b/app/helpers/build_lists_helper.rb @@ -5,7 +5,7 @@ module BuildListsHelper case status when BuildList::BUILD_PUBLISHED, BuildList::SUCCESS, BuildList::BUILD_PUBLISHED_INTO_TESTING 'success' - when BuildList::BUILD_ERROR, BuildList::FAILED_PUBLISH, BuildList::REJECTED_PUBLISH, BuildList::FAILED_PUBLISH_INTO_TESTING + when BuildList::BUILD_ERROR, BuildList::FAILED_PUBLISH, BuildList::REJECTED_PUBLISH, BuildList::FAILED_PUBLISH_INTO_TESTING, BuildList::PACKAGES_FAIL 'error' when BuildList::TESTS_FAILED 'warning'