summaryrefslogtreecommitdiff
blob: efac3b339cf83e75c371e2c8661054439e06c797 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{% extends "layout/base.html" %}
{% block content %}
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">
      <span class="fa fa-fw fa-history"></span>
      Build Logs On Packages
    </h3>
    {% if BL_tmp.has_other_pages %}
  <ul class="pagination">
    {% if BL_tmp.has_previous %}
      <li><a href="?page={{ BL_tmp.previous_page_number }}">&laquo;</a></li>
    {% else %}
      <li class="disabled"><span>&laquo;</span></li>
    {% endif %}
    {% for i in BL_tmp.paginator.page_range %}
      {% if BL_tmp.number == i %}
        <li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li>
      {% else %}
        <li><a href="?page={{ i }}">{{ i }}</a></li>
      {% endif %}
    {% endfor %}
    {% if BL_tmp.has_next %}
      <li><a href="?page={{ BL_tmp.next_page_number }}">&raquo;</a></li>
    {% else %}
      <li class="disabled"><span>&raquo;</span></li>
    {% endif %}
  </ul>
{% endif %}
  </div>
  <div class="table-responsive">
    <table class="table table-striped">
      {% 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 %}
        {% if BL.FI.others %}
          <span class="label label-info">Others</span>
        {% else %}
              {% if BL.FI.qa %}
                <span class="label label-warning">
              {% else %}
                <span class="label label-success">
              {% endif %}
				Qa</span>
              {% if BL.FI.repoman %}
                <span class="label label-warning">
              {% else %}
                 <span class="label label-success">
              {% endif %}
				Repoman</span>
              {% if BL.FI.TestRun %}
				{% if BL.FI.test %}
					<span class="label label-danger">
				{% else %}
					<span class="label label-success">
				{% endif %}
					Test</span>
			  {% endif %}
              {% if BL.FI.build %}
                <span class="label label-danger">{{ BL.FI.builderror }}
              {% else %}
                <span class="label label-success">Build
              {% endif %}
				</span>
        {% endif %}
	{% else %}
         <span class="label label-success">Ok</span>
    {% endif %}
  </td>
</tr>
{% endfor %}
    </table>
  </div>
</div>
{% if BL_tmp.has_other_pages %}
  <ul class="pagination">
    {% if BL_tmp.has_previous %}
      <li><a href="?page={{ BL_tmp.previous_page_number }}">&laquo;</a></li>
    {% else %}
      <li class="disabled"><span>&laquo;</span></li>
    {% endif %}
    {% for i in BL_tmp.paginator.page_range %}
      {% if BL_tmp.number == i %}
        <li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li>
      {% else %}
        <li><a href="?page={{ i }}">{{ i }}</a></li>
      {% endif %}
    {% endfor %}
    {% if BL_tmp.has_next %}
      <li><a href="?page={{ BL_tmp.next_page_number }}">&raquo;</a></li>
    {% else %}
      <li class="disabled"><span>&raquo;</span></li>
    {% endif %}
  </ul>
{% endif %}
{% endblock %}