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 @@ - - + @@ -65,7 +65,7 @@ - + {% endfor %} @@ -85,7 +85,7 @@ - + {% endfor %} {% if not user_tickets %} @@ -106,7 +106,7 @@ - + {% endfor %} @@ -131,7 +131,7 @@ - + {% 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 %}

{% blocktrans with category.title as kbcat %}Knowledgebase Category: {{ kbcat }}{% endblocktrans %}

@@ -14,7 +14,7 @@ {% for item in items %} - + {% endfor %} diff --git a/helpdesk/templates/helpdesk/public_view_ticket.html b/helpdesk/templates/helpdesk/public_view_ticket.html index d77028bc..112d68a1 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 @@ - + @@ -58,7 +58,7 @@ {% load ticket_to_link %} {% for followup in ticket.followup_set.public_followups %}
-
{{ followup.title }}
+
{{ followup.title }}
{{ followup.comment|force_escape|urlizetrunc:50|num_to_link|linebreaksbr }} {% if followup.ticketchange_set.all %}
{% 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 }}
{{ ticket.title }} {{ ticket.queue }} {{ ticket.get_status }}{{ ticket.modified|timesince }}{{ ticket.modified|naturaltime }}
{{ ticket.get_priority_span }} {{ ticket.title }} {{ ticket.queue }}{{ ticket.created|timesince }} ago{{ ticket.created|naturaltime }} {% trans "Take" %} | {% trans "Delete" %}
{{ ticket.title }} {{ ticket.queue }} {{ ticket.get_status }}{{ ticket.modified|timesince }}{{ ticket.modified|naturaltime }}
{{ 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 }})