layerindex-web/templates/layerindex/updatelist.html
Tim Orling bd58fbe7df bootstrap_pagination: disable via comment
Wrap the is_pagination usage of bootstrap_pagination with comment/endcomment
to avoid incompatible module.

We will need to re-write the pagination code.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2023-10-05 20:09:12 -07:00

68 lines
2.0 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% load extrafilters %}
{% comment %}
layerindex-web - updates list page template
Copyright (C) 2016 Intel Corporation
Licensed under the MIT license, see COPYING.MIT for details
{% endcomment %}
<!--
{% block title_append %} - updates{% endblock %}
-->
{% block content %}
{% autoescape on %}
<div class="row">
<div class="col-md-9 col-md-offset-1">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Update date</th>
<th>Time</th>
<th>Errors</th>
<th>Warnings</th>
</tr>
</thead>
<tbody>
{% for update in updates %}
{% with error_count=update.error_count warning_count=update.warning_count %}
<tr>
<td>
<a href="{% url 'update' update.id %}">{{ update.started }}{% if update.reload %} (reload){% endif %}</a>
{% if update.finished and update.retcode %}<span id="status-label" class="label label-danger">{% if update.retcode < 0 %}TERMINATED{% elif update.retcode %}FAILED{% endif %}{% endif %}
</td>
<td>{% if update.finished %}{{ update.started|timesince2:update.finished }}{% else %}(in progress){% endif %}</td>
<td>{% if error_count %}<span class="badge badge-important">{{ error_count }}</span>{% endif %}</td>
<td>{% if warning_count %}<span class="badge badge-warning">{{ warning_count }}</span>{% endif %}</td>
</tr>
{% endwith %}
{% endfor %}
</tbody>
</table>
</div>
</div>
{% if is_paginated %}
{% comment %}
{% load bootstrap_pagination %}
<div class="text-center">
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
</div>
{% endcomment %}
{% endif %}
{% endautoescape %}
{% endblock %}