summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'python/templates/pages/logs/index.html')
-rw-r--r--python/templates/pages/logs/index.html117
1 files changed, 89 insertions, 28 deletions
diff --git a/python/templates/pages/logs/index.html b/python/templates/pages/logs/index.html
index ff5f354..f770f95 100644
--- a/python/templates/pages/logs/index.html
+++ b/python/templates/pages/logs/index.html
@@ -4,39 +4,100 @@
<div class="panel-heading">
<h3 class="panel-title">
<span class="fa fa-fw fa-history"></span>
- <a href="/packages/added">New Build Logs On Packages</a>
+ 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">
- {% include "includes/frontpage/new_logs" %}
- </table>
- </div>
-</div>
-<div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">
- <span class="fa fa-fw fa-history"></span>
- <a href="/packages/added">New Repoman Logs On Packages</a>
- </h3>
- </div>
- <div class="table-responsive">
- <table class="table table-striped">
- {% include "includes/frontpage/new_repoman" %}
- </table>
- </div>
-</div>
-<div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">
- <span class="fa fa-fw fa-history"></span>
- <a href="/packages/added">New Qa Logs On Packages</a>
- </h3>
- </div>
- <div class="table-responsive">
- <table class="table table-striped">
- {% include "includes/frontpage/new_qa" %}
+ {% 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 %}