layerindex-web/templates/layerindex/updatelist.html
Paul Eggleton 517424dc81 Upgrade to Bootstrap 3
Use a more modern version of Bootstrap and take the opportunity to
upgrade jQuery to the latest version at the same time. This provides
better browser compatibility, moves to MIT license, allows us to make
the site more responsive for different devices in future, and provides
theming capabilities for custom installs among other improvements.

(I chose to upgrade to v3 for now rather than straight to v4 as it was
easier to do this gradually.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-09-20 15:57:59 +12:00

61 lines
1.6 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></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 %}
{% load pagination %}
{% pagination page_obj %}
{% endif %}
{% endautoescape %}
{% endblock %}