format datetimes

This commit is contained in:
Sebastian Lohff 2015-03-28 22:17:55 +01:00
parent 51b2ee7e45
commit cc7e8d12ae
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
{% endblock %}
{% block body %}
<div class="page-header">
<h3>Crawl run {{crawl.pk}} from {{crawl.startTime}}</h3>
<h3>Crawl run {{crawl.pk}} from {{crawl.startTime|date:"d.m.Y H:i"}}</h3>
</div>
<div id="plotwin" class="container"></div>

View File

@ -16,8 +16,8 @@
{% for crawl in crawls %}
<tr class="{% if crawl.endTime%}success{%else%}warning{%endif%}">
<td><a href="/map/{{crawl.id}}/">Crawl {{crawl.id}}</a></td>
<td>{{crawl.startTime}}</td>
<td>{{crawl.endTime}}</td>
<td>{{crawl.startTime|date:"d.m.Y H:i:s"}}</td>
<td>{{crawl.endTime|date:"d.m.Y H:i:s"}}</td>
<td><span class="label label-primary">{{crawl.countAS}}</span> / <span class="label label-success">{{crawl.countASOnline}}</span> / <span class="label label-danger">{{crawl.countASOffline }}</span></td>
<td><span class="label label-primary">{{crawl.countPeerings}}</span></td>
</tr>