diff options
author | Magnus Granberg <zorry@gentoo.org> | 2016-02-12 23:41:24 +0100 |
---|---|---|
committer | Magnus Granberg <zorry@gentoo.org> | 2016-02-12 23:41:24 +0100 |
commit | fb308a94d6fd8690d3e82f8fe833bbe93791ec39 (patch) | |
tree | 0e76a14596d6bb6b60de25bc64697ebeb4ebf738 /python/templates/includes/frontpage/new_logs | |
parent | update buildinfo to packages typo fix (diff) | |
download | tinderbox-cluster-www-fb308a94d6fd8690d3e82f8fe833bbe93791ec39.tar.gz tinderbox-cluster-www-fb308a94d6fd8690d3e82f8fe833bbe93791ec39.tar.bz2 tinderbox-cluster-www-fb308a94d6fd8690d3e82f8fe833bbe93791ec39.zip |
redo the add buildinfo to packages
Diffstat (limited to 'python/templates/includes/frontpage/new_logs')
-rw-r--r-- | python/templates/includes/frontpage/new_logs | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/python/templates/includes/frontpage/new_logs b/python/templates/includes/frontpage/new_logs index 1acbbc2..bb97536 100644 --- a/python/templates/includes/frontpage/new_logs +++ b/python/templates/includes/frontpage/new_logs @@ -6,19 +6,23 @@ <td><p title="{{ B.SummeryText }}">{{ B.SummeryText|truncatewords:3 }}</p> <td class="text-right"> {% if B.Fail %} - {% if B.FailCode == 'OTHERS' %} - <span class="label label-info">{{ B.FailCode }}</span> - {% else %} - <span class="label label-danger">{{ B.FailCode }}</span> + {% for BE in B.BE_tmp %} + {% if BE.BuildLogId.BuildLogId == B.BuildLogId %} + {% if BE.ErrorId.ErrorId == 1 or BE.ErrorId.ErrorId == 2 %} + <span class="label label-warning">{{ BE.ErrorId.ErrorName|upper }}</span> + {% endif %} + {% if BE.ErrorId.ErrorId == 3 %} + <span class="label label-info">{{ BE.ErrorId.ErrorName|upper }}</span> + {% elif BE.ErrorId.ErrorId > 3 %} + <span class="label label-danger">{{ BE.ErrorId.ErrorName|upper }}</span> + {% endif %} + {% endif %} + {% endfor %} + {% if not B.FailB %} + <span class="label label-success">BUILD</span> {% endif %} {% else %} - <span class="label label-success">Build</span> - {% endif %} - {% if B.Repoman %} - <span class="label label-warning">Repoman</span> - {% endif %} - {% if B.Qa %} - <span class="label label-warning">Qa</span> + <span class="label label-success">Ok</span> {% endif %} </td> </td> |