use naturaltime in overview

This commit is contained in:
elnappo 2014-10-28 14:25:19 +01:00
parent 57bf826756
commit 06cbd2f6b0
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %}{% load bootstrap %} {% load i18n %}{% load bootstrap %}{% load humanize %}
{% block content %} {% block content %}
<div class="row"> <div class="row">
@ -53,7 +53,7 @@
<td>{{ host.get_ipv4 }} <td>{{ host.get_ipv4 }}
<br> <br>
{% if host.last_update_ipv4 %} {% if host.last_update_ipv4 %}
({{ host.last_update_ipv4|timesince }}, ({{ host.last_update_ipv4|naturaltime }},
{% if not host.tls_update_ipv4 %} {% if not host.tls_update_ipv4 %}
<span class="label label-warning">no {% else %} <span class="label label-warning">no {% else %}
<span class="label label-success">{% endif %}TLS</span>) <span class="label label-success">{% endif %}TLS</span>)
@ -64,7 +64,7 @@
<td>{{ host.get_ipv6 }} <td>{{ host.get_ipv6 }}
<br> <br>
{% if host.last_update_ipv6 %} {% if host.last_update_ipv6 %}
({{ host.last_update_ipv6|timesince }}, ({{ host.last_update_ipv6|naturaltime }},
{% if not host.tls_update_ipv6 %} {% if not host.tls_update_ipv6 %}
<span class="label label-warning">no {% else %} <span class="label label-warning">no {% else %}
<span class="label label-success">{% endif %}TLS</span>) <span class="label label-success">{% endif %}TLS</span>)

View File

@ -150,6 +150,7 @@ INSTALLED_APPS = (
'django.contrib.sites', 'django.contrib.sites',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'django.contrib.humanize',
'social.apps.django_app.default', 'social.apps.django_app.default',
'nsupdate.login', 'nsupdate.login',
'nsupdate', 'nsupdate',