diff --git a/docs/install.rst b/docs/install.rst
index 13e1d19a..f9561984 100644
--- a/docs/install.rst
+++ b/docs/install.rst
@@ -30,17 +30,18 @@ Adding To Your Django Project
-----------------------------
1. Edit your ``settings.py`` file and add ``helpdesk`` to the ``INSTALLED_APPS`` setting. You also need ``django.contrib.admin`` and ``django.contrib.markup`` in ``INSTALLED_APPS`` if you haven't already added it. eg::
-
+
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
- 'django.contrib.admin', # Required for helpdesk admin/maintenance
- 'django.contrib.markup', # Required for helpdesk text display
- 'south', # Highly recommended to make database migrations simpler.
- 'markdown_deux', # Required for Knowledgebase item formatting
- 'helpdesk', # This is new!
+ 'django.contrib.admin', # Required for helpdesk admin/maintenance
+ 'django.contrib.markup', # Required for helpdesk text display
+ 'django.contrib.humanize', # Required for elapsed time formatting
+ 'south', # Highly recommended to make database migrations simpler.
+ 'markdown_deux', # Required for Knowledgebase item formatting
+ 'helpdesk', # This is new!
)
2. Make sure django-helpdesk is accessible via ``urls.py``. Add the following line to ``urls.py``::
@@ -48,7 +49,7 @@ Adding To Your Django Project
(r'helpdesk/', include('helpdesk.urls')),
Note that you can change 'helpdesk/' to anything you like, such as 'support/' or 'help/'. If you want django-helpdesk to be available at the root of your site (for example at http://support.mysite.tld/) then the line will be as follows::
-
+
(r'', include('helpdesk.urls')),
This line will have to come *after* any other lines in your urls.py such as those used by the Django admin.
diff --git a/helpdesk/templates/helpdesk/dashboard.html b/helpdesk/templates/helpdesk/dashboard.html
index 4e500bf6..187d84b7 100644
--- a/helpdesk/templates/helpdesk/dashboard.html
+++ b/helpdesk/templates/helpdesk/dashboard.html
@@ -1,4 +1,4 @@
-{% extends "helpdesk/base.html" %}{% load i18n %}{% load url from future %}
+{% extends "helpdesk/base.html" %}{% load i18n humanize %}{% load url from future %}
{% block helpdesk_title %}{% trans "Helpdesk Dashboard" %}{% endblock %}
{% block helpdesk_body %}
@@ -63,7 +63,7 @@
{{ ticket.title }} |
{{ ticket.queue }} |
{{ ticket.get_status }} |
-{{ ticket.modified|timesince }} |
+{{ ticket.modified|naturaltime }} |
{% endfor %}
@@ -83,7 +83,7 @@
{{ ticket.title }} |
{{ ticket.queue }} |
{{ ticket.get_status }} |
-{{ ticket.modified|timesince }} |
+{{ ticket.modified|naturaltime }} |
{% empty %}
{% trans "You have no tickets assigned to you." %} |
@@ -103,7 +103,7 @@
{{ ticket.get_priority_span }} |
{{ ticket.title }} |
{{ ticket.queue }} |
-{{ ticket.created|timesince }} ago |
+{{ ticket.created|naturaltime }} |
{% trans "Take" %} | {% trans "Delete" %} |
{% empty %}
@@ -127,7 +127,7 @@
{{ ticket.title }} |
{{ ticket.queue }} |
{{ ticket.get_status }} |
-{{ ticket.modified|timesince }} |
+{{ ticket.modified|naturaltime }} |
{% endfor %}
diff --git a/helpdesk/templates/helpdesk/kb_category.html b/helpdesk/templates/helpdesk/kb_category.html
index 33a60aa6..2ec878e1 100644
--- a/helpdesk/templates/helpdesk/kb_category.html
+++ b/helpdesk/templates/helpdesk/kb_category.html
@@ -1,4 +1,4 @@
-{% extends "helpdesk/public_base.html" %}{% load i18n %}
+{% extends "helpdesk/public_base.html" %}{% load i18n humanize %}
{% block helpdesk_body %}
{% blocktrans with category.title as kbcat %}Knowledgebase Category: {{ kbcat }}{% endblocktrans %}
@@ -14,7 +14,7 @@
{% for item in items %}
-{{ item.title }} | Rating: {{ item.score }} | Last Update: {{ item.last_updated|timesince }} ago |
+{{ item.title }} | Rating: {{ item.score }} | Last Update: {{ item.last_updated|naturaltime }} |
{{ item.question }} |
{% endfor %}
diff --git a/helpdesk/templates/helpdesk/public_view_ticket.html b/helpdesk/templates/helpdesk/public_view_ticket.html
index c304cdb5..d3cc200b 100644
--- a/helpdesk/templates/helpdesk/public_view_ticket.html
+++ b/helpdesk/templates/helpdesk/public_view_ticket.html
@@ -1,4 +1,4 @@
-{% extends "helpdesk/public_base.html" %}{% load i18n %}
+{% extends "helpdesk/public_base.html" %}{% load i18n humanize %}
{% block helpdesk_title %}{% trans "View a Ticket" %}{% endblock %}
{% block helpdesk_body %}
@@ -11,7 +11,7 @@
{% trans "Submitted On" %} |
- {{ ticket.created|date:"r" }} ({{ ticket.created|timesince }} ago) |
+ {{ ticket.created|date:"r" }} ({{ ticket.created|naturaltime }}) |
@@ -58,7 +58,7 @@
{% load ticket_to_link %}
{% for followup in ticket.followup_set.public_followups %}
-
{{ followup.title }} {% if followup.user %}by {{ followup.user }}{% endif %} {{ followup.date|timesince }} ago
+
{{ followup.title }} {% if followup.user %}by {{ followup.user }}{% endif %} {{ followup.date|naturaltime }}
{{ followup.comment|force_escape|urlizetrunc:50|num_to_link|linebreaksbr }}
{% if followup.ticketchange_set.all %}
{% for change in followup.ticketchange_set.all %}
diff --git a/helpdesk/templates/helpdesk/ticket.html b/helpdesk/templates/helpdesk/ticket.html
index 21c902cc..9c6d5200 100644
--- a/helpdesk/templates/helpdesk/ticket.html
+++ b/helpdesk/templates/helpdesk/ticket.html
@@ -1,4 +1,4 @@
-{% extends "helpdesk/base.html" %}{% load i18n bootstrap %}{% load url from future %}
+{% extends "helpdesk/base.html" %}{% load i18n bootstrap humanize %}{% load url from future %}
{% block helpdesk_title %}{% trans "View Ticket Details" %}{% endblock %}
{% block helpdesk_head %}