summaryrefslogtreecommitdiff
blob: 656ad7eaf4580632c0696172e8f7eeba24ab2449 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{% extends "layout/base.html" %}
{% block content %}
<div class="row">
  <h2>New Logs's</h2>
  <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
  {% for BL in BL_tmp %}
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="heading{{ BL.BuildLogId }}">
      <h4 class="panel-title">
        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse{{ BL.BuildLogId }}" aria-expanded="false" aria-controls="collapse{{ BL.BuildLogId }}">
          {{ BL.C}}/{{ BL.P }}-{{ BL.V }}::{{ BL.R }}
          {{ BL.SummeryText|truncatewords:6 }}
        </a>
        <td class="text-right">
        {% if BL.Fail %}
          {% for BE in BL.BE_tmp %}
            {% if BE.BuildLogId.BuildLogId == BL.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 %}
        <a class="btn btn-default btn-xs" href="/new/logs/build/{{ BL.BuildLogId }}/">More info</a>
      </td>
      </h4>
    </div>
    <div id="collapse{{ BL.BuildLogId }}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading{{ BL.BuildLogId }}">
      <div class="panel-body">
        {{ BL.SummeryText|linebreaksbr }}
        {% if BL.PR %}
          {{ BL.PR|linebreaksbr }}
        {% endif %}
      </div>
    </div>
  </div>
  {% endfor %}
  </div>
</div>
{% endblock %}