#403: updated build list status color

This commit is contained in:
Vokhmin Alexey V 2014-06-23 20:39:57 +04:00
parent e986cc6f4f
commit ad708c7ced
2 changed files with 2 additions and 1 deletions

View File

@ -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';

View File

@ -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'