Browse Source

format datetimes

master
Sebastian Lohff 7 years ago
parent
commit
cc7e8d12ae
  1. 2
      bgpdata/templates/bgpdata/map.html
  2. 4
      bgpdata/templates/bgpdata/overview.html

2
bgpdata/templates/bgpdata/map.html

@ -16,7 +16,7 @@ @@ -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>

4
bgpdata/templates/bgpdata/overview.html

@ -16,8 +16,8 @@ @@ -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>

Loading…
Cancel
Save