From 06cbd2f6b0267283301d4e309e5ba4ed4179b387 Mon Sep 17 00:00:00 2001 From: elnappo Date: Tue, 28 Oct 2014 14:25:19 +0100 Subject: [PATCH] use naturaltime in overview --- nsupdate/main/templates/main/overview.html | 6 +++--- nsupdate/settings/base.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nsupdate/main/templates/main/overview.html b/nsupdate/main/templates/main/overview.html index 055beec..1026c50 100644 --- a/nsupdate/main/templates/main/overview.html +++ b/nsupdate/main/templates/main/overview.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load i18n %}{% load bootstrap %} +{% load i18n %}{% load bootstrap %}{% load humanize %} {% block content %}
@@ -53,7 +53,7 @@ {{ host.get_ipv4 }}
{% if host.last_update_ipv4 %} - ({{ host.last_update_ipv4|timesince }}, + ({{ host.last_update_ipv4|naturaltime }}, {% if not host.tls_update_ipv4 %} no {% else %} {% endif %}TLS) @@ -64,7 +64,7 @@ {{ host.get_ipv6 }}
{% if host.last_update_ipv6 %} - ({{ host.last_update_ipv6|timesince }}, + ({{ host.last_update_ipv6|naturaltime }}, {% if not host.tls_update_ipv6 %} no {% else %} {% endif %}TLS) diff --git a/nsupdate/settings/base.py b/nsupdate/settings/base.py index 7556589..5fd06f1 100644 --- a/nsupdate/settings/base.py +++ b/nsupdate/settings/base.py @@ -150,6 +150,7 @@ INSTALLED_APPS = ( 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', + 'django.contrib.humanize', 'social.apps.django_app.default', 'nsupdate.login', 'nsupdate',