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 ab97bc6c..2810c013 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_head %} @@ -34,8 +34,8 @@
{% trans "Current Ticket Stats" %} | ||
- {% trans "Average number of days until ticket is closed (all tickets): " %}{{ basic_ticket_stats.average_nbr_days_until_ticket_closed }}. | ||
- {% trans "Average number of days until ticket is closed (tickets opened in last 60 days): " %}{{ basic_ticket_stats.average_nbr_days_until_ticket_closed_last_60_days }}. + | ||
- {% trans "Average number of days until ticket is closed (all tickets): " %}{{ basic_ticket_stats.average_nbr_days_until_ticket_closed }}. | ||
- {% trans "Average number of days until ticket is closed (tickets opened in last 60 days): " %}{{ basic_ticket_stats.average_nbr_days_until_ticket_closed_last_60_days }}. {% trans "Click" %} here {% trans "for detailed average by month." %} | ||
- {% trans "Distribution of open tickets, grouped by time period:" %} | ||
{% trans "Days since opened" %} | {% trans "Number of open tickets" %} | {{ ticket.title }} | {{ ticket.queue }} | {{ ticket.get_status }} | -{{ ticket.modified|timesince }} | +{{ ticket.modified|naturaltime }} | {% endfor %} @@ -85,7 +85,7 @@{{ ticket.title }} | {{ ticket.queue }} | {{ ticket.get_status }} | -{{ ticket.modified|timesince }} | +{{ ticket.modified|naturaltime }} | {% endfor %} {% if not user_tickets %} @@ -106,7 +106,7 @@{{ ticket.get_priority_span }} | {{ ticket.title }} | {{ ticket.queue }} | -{{ ticket.created|timesince }} ago | +{{ ticket.created|naturaltime }} | | | {% endfor %} @@ -131,7 +131,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 6a4a8bed..583d8680 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 %}
---|---|---|
{{ 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 }} | ||
{% trans "Submitted On" %} | -{{ ticket.created|date:"r" }} ({{ ticket.created|timesince }} ago) | +{{ ticket.created|date:"r" }} ({{ ticket.created|naturaltime }}) |