[Refs #223] Monitoring colors code in index page
This commit is contained in:
parent
61b8c70f4b
commit
b07d81644a
|
@ -1941,6 +1941,13 @@ img.delete-row {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
table tbody tr.error td {
|
||||
background: #fedede;
|
||||
}
|
||||
|
||||
table tbody tr.success td {
|
||||
background: #e3edb7;
|
||||
}
|
||||
|
||||
/* Create group */
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
# -*- encoding : utf-8 -*-
|
||||
module BuildListsHelper
|
||||
|
||||
def build_list_status(build_list)
|
||||
if [BuildList::BUILD_PUBLISHED, BuildServer::SUCCESS].include? build_list.status
|
||||
"success"
|
||||
elsif [BuildServer::BUILD_ERROR, BuildServer::PLATFORM_NOT_FOUND, BuildServer::PROJECT_NOT_FOUND,
|
||||
BuildServer::PROJECT_VERSION_NOT_FOUND, BuildList::FAILED_PUBLISH].include? build_list.status
|
||||
"error"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
|
@ -1,4 +1,4 @@
|
|||
%tr{:id => "row#{build_list_counter}"}
|
||||
%tr{:id => "row#{build_list_counter}", :class => "#{build_list_status(build_list)}"}
|
||||
%td= link_to (build_list.bs_id.present? ? build_list.bs_id : t("layout.build_lists.bs_id_not_set")), build_list
|
||||
%td= build_list.human_status
|
||||
%td= link_to build_list.project.name, build_list.project
|
||||
|
|
|
@ -241,7 +241,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr id="row1">
|
||||
<tr id="row1" class="error">
|
||||
<td>
|
||||
<span style="display: none;">4729</span><a href="#">4729</a>
|
||||
</td>
|
||||
|
@ -267,7 +267,7 @@
|
|||
2012-01-19 10:10 UTC
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="row2">
|
||||
<tr id="row2" class="success">
|
||||
<td>
|
||||
<span style="display: none;">4728</span><a href="#">4728</a>
|
||||
</td>
|
||||
|
|
|
@ -1952,7 +1952,7 @@ img.delete-row {
|
|||
}
|
||||
|
||||
table tbody tr.error td {
|
||||
background: #e7bcbc;
|
||||
background: #fedede;
|
||||
}
|
||||
|
||||
table tbody tr.success td {
|
||||
|
|
Loading…
Reference in New Issue