diff options
Diffstat (limited to 'python/templates/includes/frontpage/new_logs')
-rw-r--r-- | python/templates/includes/frontpage/new_logs | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/python/templates/includes/frontpage/new_logs b/python/templates/includes/frontpage/new_logs index 49db4c3..3074c4d 100644 --- a/python/templates/includes/frontpage/new_logs +++ b/python/templates/includes/frontpage/new_logs @@ -1,31 +1,27 @@ -{% for BL in BL_tmp %} -<tr> - <td> - <a href="/logs/build/{{ BL.BuildLogId }}/"> - <span class="text-muted">{{ BL.C }}/</span>/<strong>{{ BL.P }}-{{ BL.V }}::{{ BL.R }}</strong> - </a> - </td> - <td> - <p title="{{ BL.SummeryText }}">{{ BL.SummeryText|truncatewords:5 }}</p> - {% if BL.Fail %} +<table class="table table-striped frontpage-table"> + {% for B in BL%} + <tr> + <td class="frontpage-table-package-atom"><a href="/new_logs/{{ B.BuildLogId }}/" title="{{ B.C }}/{{ B.P }}-{{ B.V }}::{{ B.R }}"> + {{ B.C }}/{{ B.P }}-{{ B.V }}::{{ B.R }}</a></td> + <td><p title="{{ B.SummeryText }}">{{ B.SummeryText|truncatewords:3 }}</p> + <td class="text-right"> + {% if B.Fail %} {% 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 %} + {% elif BE.ErrorId.ErrorId == 3 %} + <span class="label label-info">OTHERS</span> + {% else %} <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">Ok</span> - {% endif %} - </td> -</tr> -{% endfor %} + {% else %} + <span class="label label-success">OK</span> + {% endif %} + </td> + </td> + </tr> + {% endfor %} +</table>
\ No newline at end of file |