summaryrefslogtreecommitdiff
blob: 3074c4d8e97465b8bdab126d9ecf914ee7ac2a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<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>
              {% 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 %}
        {% else %}
          <span class="label label-success">OK</span>
        {% endif %}
      </td>
      </td>
    </tr>
  {% endfor %}
</table>