evorepo/templates/mirrors/error_table.html
Dan McGee 86f9d6788e Django 1.6 upgrade, deprecation cleanup
PendingDeprecationWarning: 'The `cycle` template tag is changing to
escape its arguments; the non-autoescaping version is deprecated. Load
it from the `future` tag library to start using the new behavior.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-06 21:10:52 -06:00

25 lines
864 B
HTML

{% load cycle from future %}
{% load flags mirror_status %}
<table id="errorlog_mirrors" class="results">
<thead>
<tr>
<th>Mirror URL</th>
<th>Protocol</th>
<th>Country</th>
<th>Error Message</th>
<th>Last Occurred</th>
<th>Occurrences (last {{ cutoff|hours }})</th>
</tr>
</thead>
<tbody>
{% for log in error_logs %}<tr class="{% cycle 'odd' 'even' %}">
<td>{{ log.url__url }}</td>
<td>{{ log.url__protocol__protocol }}</td>
<td class="country">{% country_flag log.country %}{{ log.country.name }}</td>
<td class="wrap">{{ log.error|linebreaksbr }}</td>
<td>{{ log.last_occurred|date:'Y-m-d H:i' }}</td>
<td>{{ log.error_count }}</td>
</tr>{% endfor %}
</tbody>
</table>